[issue2292] Missing *-unpacking generalizations

Thomas Wouters report at bugs.python.org
Sat Mar 15 17:22:38 CET 2008


Thomas Wouters <thomas at python.org> added the comment:

On Sat, Mar 15, 2008 at 9:18 AM, Guido van Rossum <report at bugs.python.org>
wrote:

>
> 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> ?
>

It's a typo. It should've been list(flatten(L)) :-) (see the tests included
in the patch.)

Added file: http://bugs.python.org/file9675/unnamed

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2292>
__________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
Url: http://mail.python.org/pipermail/python-bugs-list/attachments/20080315/bc5a815c/attachment-0001.txt 


More information about the Python-bugs-list mailing list