[Python-3000] optimizing [x]range (original) (raw)

Raymond Hettinger python at rcn.com
Tue Jul 31 06:09:47 CEST 2007


Having done that, if I want to test whether some index j is within the range of indices for this sequence, it seems natural to write

if j in r: ... Fair enough. So maybe you can contribute a patch?

And maybe we can do the same for xrange() in Py2.6

Raymond



More information about the Python-3000 mailing list