This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author twouters
Recipients belopolsky, gvanrossum, twouters
Date 2008-03-15.16:22:37
SpamBayes Score 0.2784232
Marked as misclassified No
Message-id <9e804ac0803150922s4f63f223h6962828899614d23@mail.gmail.com>
In-reply-to <1205597889.59.0.591051962702.issue2292@psf.upfronthosting.co.za>
Content
On Sat, Mar 15, 2008 at 9:18 AM, Guido van Rossum <report@bugs.python.org>
wrote:

>
> Guido van Rossum <guido@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.)
Files
File name Uploaded
unnamed twouters, 2008-03-15.16:22:37
History
Date User Action Args
2008-03-15 16:22:38twouterssetspambayes_score: 0.278423 -> 0.2784232
recipients: + twouters, gvanrossum, belopolsky
2008-03-15 16:22:37twouterslinkissue2292 messages
2008-03-15 16:22:37twouterscreate