UnpackException
Posted: 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:
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
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