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 serhiy.storchaka
Recipients benjamin.peterson, mark.dickinson, serhiy.storchaka, vstinner
Date 2016-02-24.16:40:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456332045.09.0.811032800198.issue26428@psf.upfronthosting.co.za>
In-reply-to
Content
The xrange() object works with integers in the range of C long, not Py_ssize_t. Thus the idiomatic expression xrange(len(seq)) can fail for real sequences if sys.maxint < sys.maxsize (e.g on 64-bit Windows).

Proposed patch changes the xrange() implementation to use Py_ssize_t instead of C long.
History
Date User Action Args
2016-02-24 16:40:46serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson, vstinner, benjamin.peterson
2016-02-24 16:40:45serhiy.storchakasetmessageid: <1456332045.09.0.811032800198.issue26428@psf.upfronthosting.co.za>
2016-02-24 16:40:45serhiy.storchakalinkissue26428 messages
2016-02-24 16:40:44serhiy.storchakacreate