Author jackdied
Recipients ajaksu2, benjamin.peterson, exarkun, jackdied, jml
Date 2009-07-27.03:46:22
SpamBayes Score 2.99933e-10
Marked as misclassified No
Message-id <1248666384.49.0.305150249782.issue3071@psf.upfronthosting.co.za>
In-reply-to
Content
I was looking at 3.x, JP's patch is relative to 2.x and takes a little
more unpacking (a couple function calls more) but looks to me to be the
same.  In 2.x unpack_iterable() sets/returns an error once one item more
than is required is received.  It doesn't give any more information
about known-length builtins than anything else.  The same error is
raised for million-item lists as three item lists if the expected number
to unpack is two.

The original feature request was that the error message be better if,
say the left hand side wanted three arguments and the right hand side
provided four.  The ceval.c code is different between 2.x and 3.x but
they both only check for 'exactly the right number, or one or more too
many.'
History
Date User Action Args
2009-07-27 03:46:24jackdiedsetrecipients: + jackdied, exarkun, ajaksu2, benjamin.peterson, jml
2009-07-27 03:46:24jackdiedsetmessageid: <1248666384.49.0.305150249782.issue3071@psf.upfronthosting.co.za>
2009-07-27 03:46:22jackdiedlinkissue3071 messages
2009-07-27 03:46:22jackdiedcreate