[Python-3000] optimizing [x]range (original) (raw)
Raymond Hettinger python at rcn.com
Tue Jul 31 06:09:47 CEST 2007
- Previous message: [Python-3000] optimizing [x]range
- Next message: [Python-3000] optimizing [x]range
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] optimizing [x]range
- Next message: [Python-3000] optimizing [x]range
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]