generators : random shootout
Ben Wolfson
wolfson at uchicago.edu
Fri Jan 11 18:12:23 EST 2002
More information about the Python-list mailing list
Fri Jan 11 18:12:23 EST 2002
- Previous message (by thread): generators : random shootout
- Next message (by thread): generators : random shootout
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 11 Jan 2002 16:46:30 -0600, Mark McEahern wrote:
> for i in xrange(1, N):
> gr.next()
Changing this to
for i in zip(gr, xrange(1, N)):
pass
speeds it up a bit.
--
BTR
BEN WOLFSON HAS RUINED ROCK MUSIC FOR A GENERATION
-- Crgre Jvyyneq
- Previous message (by thread): generators : random shootout
- Next message (by thread): generators : random shootout
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list