[issue35985] Folding tries to slice from 0 to float("+inf") when maxlength is 0
Lukas J
report at bugs.python.org
Wed Feb 13 07:22:40 EST 2019
Lukas J <postbotenamt at gmail.com> added the comment:
Indeed it is. Sorry I didn't find it before.
So it seems that changing float("+inf") to sys.maxsize would solve the problem? I've tried it in an interactive shell:
>>> a = "asd"; import sys
>>> a[:sys.maxsize]
'asd'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35985>
_______________________________________
More information about the Python-bugs-list
mailing list