Tuple assignment

"Jérôme M. Berger" jeberger at free.fr
Fri Oct 8 13:38:31 PDT 2010


Juanjo Alvarez wrote:
> On Thu, 07 Oct 2010 15:14:12 -0400, bearophile
> <bearophileHUGS at lycos.com> wrote:
>> This is false both in Python2 and Python3.
> 
> 
> What is exactly false on what I said?

> python
Python 2.6.5 (r265:79063, Apr  1 2010, 05:28:39)
[GCC 4.4.3 20100316 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a, b, c, _ = ('tuple', 'of', 'three')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: need more than 3 values to unpack
>>>

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101008/983cd260/attachment.pgp>


More information about the Digitalmars-d mailing list