[issue14794] slice.indices raises OverflowError
Hynek Schlawack
report at bugs.python.org
Sun May 13 00:57:56 CEST 2012
Hynek Schlawack <hs at ox.cx> added the comment:
This seems to have been fixed as of 3.2.3 (as shipped with Ubuntu Precise):
Python 3.2.3 (default, Apr 12 2012, 19:08:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> slice(0,90000,None).indices(12600000000)
(0, 90000, 1)
Current tip works fine too:
Python 3.3.0a3+ (default:b32baa5b7626+, May 10 2012, 14:56:20)
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> slice(0,90000,None).indices(12600000000)
(0, 90000, 1)
I'd close this bug unless I'm missing something?
----------
nosy: +hynek
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14794>
_______________________________________
More information about the Python-bugs-list
mailing list