[Python-Dev] gcc 4.2 exposes signed integer overflows

Tim Peters tim.peters at gmail.com
Sun Aug 27 05:24:51 CEST 2006


[David Hopwood]
> (CPython has probably only been tested on 2's complement systems anyway,

Definitely so.  Are there any boxes using 1's-comp or sign-magnitude
integers anymore?  Python assumes 2's-comp in many places.

> but if we're going to be pedantic about depending only on things in the
> C standard...)

No, in that respect we're driven by the silliest decisions made by C
compiler writers ;-)


More information about the Python-Dev mailing list