[issue2292] Missing *-unpacking generalizations

Guido van Rossum report at bugs.python.org
Sat Mar 15 17:18:09 CET 2008


Guido van Rossum <guido at python.org> added the comment:

Looking at the flatten() example I'm curious -- how come the output of

>>> flatten(L)

is displayed as a list rather than as <generator at xxxxxx> ?

Also, do I understand correctly that

yield *(1, 2, 3)

is equivalent to

yield 1
yield 2
yield 3

? (That's really cool.)

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2292>
__________________________________


More information about the Python-bugs-list mailing list