Thomas Wouters <[EMAIL PROTECTED]> added the comment:
On Sat, Mar 15, 2008 at 9:18 AM, Guido van Rossum <[EMAIL PROTECTED]>
wrote:
>
> Guido van Rossum <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2292>
__________________________________
<br><br><div class="gmail_quote">On Sat, Mar 15, 2008 at 9:18 AM, Guido van
Rossum <<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>>
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
Guido van Rossum <<a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>> added the comment:<br>
<br>
</div>Looking at the flatten() example I'm curious -- how come the output
of<br>
<br>
>>> flatten(L)<br>
<br>
is displayed as a list rather than as <generator at xxxxxx> ?<br>
</blockquote><div><br>It's a typo. It should've been list(flatten(L))
:-) (see the tests included in the patch.) <br></div></div><br>-- <br>Thomas
Wouters <<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>><br>
<br>Hi! I'm a .signature virus! copy me into your .signature file to help
me spread!
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com