[issue1621] Do not assume signed integer overflow behavior

Xiang Zhang report at bugs.python.org
Mon Aug 1 00:47:54 EDT 2016


Xiang Zhang added the comment:

So these checks are superfluous? Do we need to remove them?

Hmm, I still doubt such checks should consider platform characteristics first. In theory List can be PY_SSIZE_T_MAX length. Do we have to put the PY_SIZE_MAX // sizeof(PyObject *) limit on it?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1621>
_______________________________________


More information about the Python-bugs-list mailing list