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, mark.dickinson
Date 2008-04-25.19:23:59
SpamBayes Score 0.13327709
Marked as misclassified No
Message-id <1209151442.37.0.142582679455.issue2690@psf.upfronthosting.co.za>
In-reply-to
Content
Option (3) would require changing both sq_item and sq_length signatures,
which is likely to have a large negative impact on performance.

Option (2) would either require a change for the sq_length signature, or
leave the problem of having valid range objects for which applying len()
would produce an OverflowError.

What are the use cases for ranges with length greater than maxsize? Note
that in 2.x all arguments to length are limited to 32 bit integers (even
on 64-bit platforms) and the main reason to support long start/stop/step
in 3.0  is because 2.x range() supports them.  On the other hand, since
2.x range() produces lists, it is limited in length to a fraction of
sys.maxsize.  Therefore none of the current uses of either range or
xrange require support of long length.
History
Date User Action Args
2008-04-25 19:24:03belopolskysetspambayes_score: 0.133277 -> 0.13327709
recipients: + belopolsky, mark.dickinson
2008-04-25 19:24:02belopolskysetspambayes_score: 0.133277 -> 0.133277
messageid: <1209151442.37.0.142582679455.issue2690@psf.upfronthosting.co.za>
2008-04-25 19:24:01belopolskylinkissue2690 messages
2008-04-25 19:23:59belopolskycreate