generators : random shootout
Mark McEahern
marklists at mceahern.com
Sat Jan 12 14:52:17 EST 2002
GerritM wrote:
> I did not yet look at iterators at all, therefor I like this thread a lot!
> Apparantly the strange construction with the zip is used in order to get N
> iterations of gr. Does some more elegant solution exist to get N
> iterations, for instance:
> gr[1:N]
> gr.getiterations(100)
Not sure, but in my testing the zip doodad actually takes longer, contrary
to the original claim that it sped it up.
Cheers,
// mark
More information about the Python-list
mailing list