[issue34397] remove redundant overflow checks in tuple and list implementations
Tim Peters
report at bugs.python.org
Fri Sep 21 23:57:36 EDT 2018
Tim Peters <tim at python.org> added the comment:
Because the behavior of signed integer overflow isn't defined in C. Picture a 3-bit integer type, where the maximum value of the signed integer type is 3. 3+3 has no defined result. Cast them to the unsigned flavor of the integer type, though, and the result is defined to be 6.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34397>
_______________________________________
More information about the Python-bugs-list
mailing list