[issue13496] bisect module: Overflow at index computation
Tim Peters
report at bugs.python.org
Tue Nov 29 00:45:42 CET 2011
Tim Peters <tim.peters at gmail.com> added the comment:
FWIW, I doubt there's a real issue here. Objects in Python consume a lot more than a byte or two of memory, so the index range of a Python list is generally a lot less than ssize_t allows for. In other words, quantify "large" in "large arrays". How large can a Python list actually be, relative to ssize_t? Similar reasoning accounts for why we never worry about overflow when mucking with refcounts: the size of a refcount member exceeds the maximum number of references that could exist.
----------
nosy: +tim_one
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13496>
_______________________________________
More information about the Python-bugs-list
mailing list