Forums

UnpackException

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

UnpackException

Postby Charles » Thu Jul 19, 2012 12:42 am

Cobra is now like Python in that unpacking the wrong number of elements will always throw an exception. This was recently discussed at viewtopic.php?f=4&t=975

You even get an informative message like:
a, b, c, d = someList
# -->
# Unhandled Exception: Cobra.Core.UnpackException: Cannot unpack 3 values into 4 targets.


Take it for a spin and let me know if you have any feedback.

The ticket:
http://cobra-language.com/trac/cobra/ticket/284

The changeset:
http://cobra-language.com/trac/cobra/changeset/2746
Charles
 
Posts: 2515
Location: Los Angeles, CA

Return to Discussion

Who is online

Users browsing this forum: No registered users and 32 guests