those are many exceptions, but all of them raise

ValueError: too many values to unpack

he's getting "the opposite"
ValueError: need more than 1 value to unpack

On Friday, March 29, 2013 9:19:47 PM UTC+1, Cliff Kachinske wrote:
>
> I get those sometimes when I'm sloppy about refactoring.
>
> Look for a stray comma on the left side of an equals
>
> foo, = bar()
>
> this is a problem, too
>
> foo, bar = 'foobar'
>
> and a third way to raise this error
>
> def fubar():
>   return 'hello, world'
>
>
> foo, bar = fubar()
>
> Those are the main ways I get that exception.
>
> As you may realize, I am very experienced at getting exceptions:).
>
> On Friday, March 29, 2013 1:15:57 PM UTC-4, [email protected] wrote:
>>
>> <type 'exceptions.ValueError'>(need more than 1 value to unpack)
>>
>> I got this weird kind of error and not able to figure out what this means.
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to