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 &lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>&gt; 
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 &lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</a>&gt; added the comment:<br>
<br>
</div>Looking at the flatten() example I&#39;m curious -- how come the output 
of<br>
<br>
&gt;&gt;&gt; flatten(L)<br>
<br>
is displayed as a list rather than as &lt;generator at xxxxxx&gt; ?<br>
</blockquote><div><br>It&#39;s a typo. It should&#39;ve been list(flatten(L)) 
:-) (see the tests included in the patch.) <br></div></div><br>-- <br>Thomas 
Wouters &lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>&gt;<br>
<br>Hi! I&#39;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

Reply via email to