Message260816
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. |
|
Date |
User |
Action |
Args |
2016-02-24 16:40:46 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, mark.dickinson, vstinner, benjamin.peterson |
2016-02-24 16:40:45 | serhiy.storchaka | set | messageid: <1456332045.09.0.811032800198.issue26428@psf.upfronthosting.co.za> |
2016-02-24 16:40:45 | serhiy.storchaka | link | issue26428 messages |
2016-02-24 16:40:44 | serhiy.storchaka | create | |
|