PEP 255: Simple Generators

Emile van Sebille emile at fenx.com
Thu Jun 21 13:39:18 EDT 2001


"Terry Reedy" <tjreedy at home.com> wrote in message
news:K_pY6.29983$Zt6.13980958 at news1.rdc2.pa.home.com...
<snip>
> Question: am I correct in thinking that separating iterator-generation
from
> iterator-first-use makes it possible to have multiple iterators from the
> same generator in simultaneous use, as in
>
> sq10 = squares(10)
> sq20 = squares(20)
> ...
> ?

current cvs test shows this is possible


--

Emile van Sebille
emile at fenx.com

---------






More information about the Python-list mailing list