Tim Peters <t...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34397>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to