delay and force in Python

John J. Lee jjl at
Tue Jan 25 18:33:13 EST 2005

Nick Coghlan <ncoghlan at> writes:
> (xrange can't handle Python longs, unfortunately, so we *are*
> constrained by sys.maxint. However, since my machine only has half a
> gig of RAM, the above is still a damn sight quicker than the
> equivalent list comprehension would be!)

Other way 'round: if you had even more RAM, the listcomp would be even
slower for this job!


More information about the Python-list mailing list