[issue10889] Fix range slicing and indexing to handle lengths > sys.maxsize
report at bugs.python.org
Tue Jan 11 19:34:54 CET 2011
Nick Coghlan <ncoghlan at gmail.com> added the comment:
Oh, and to explain my negative comment from earlier: that was my reaction when I realised I also needed to write PyLong versions of _PyEval_SliceIndex and PySlice_GetIndicesEx to make range slicing with large integers work properly.
As it turned out, the end result wasn't as scary as I initially feared (while compute_slice_indices is quite long, most of that is just the verbosity of PyLong arithmetic).
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list