This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky
Date 2008-04-25.15:31:57
SpamBayes Score 0.003954242
Marked as misclassified No
Message-id <1209137521.96.0.492875701205.issue2690@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch makes range objects precompute their length on creation.  
This speeds up indexing and len at the expense of a small increase in 
range object size.  The main benefit, however is that unsupported length > 
sys.maxsize is detected early and confusing OverflowError from len(r) or 
r[i] is avoided.

See discussion starting at http://mail.python.org/pipermail/python-
3000/2008-April/013225.html .
History
Date User Action Args
2008-04-25 15:32:02belopolskysetspambayes_score: 0.00395424 -> 0.003954242
recipients: + belopolsky
2008-04-25 15:32:02belopolskysetspambayes_score: 0.00395424 -> 0.00395424
messageid: <1209137521.96.0.492875701205.issue2690@psf.upfronthosting.co.za>
2008-04-25 15:32:00belopolskylinkissue2690 messages
2008-04-25 15:31:59belopolskycreate