Integer literal overflow error with -2147483648 but not with 0x80 000000 ?
Mike Fletcher
mfletch at tpresence.com
Tue Jan 25 05:10:42 EST 2000
Just wondering if there's a reason for this (doesn't cause a problem for me,
just seems strange)...
PythonWin 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Portions Copyright 1994-1999 Mark Hammond (MHammond at skippinet.com.au)
>>> 0x80000000
-2147483648
>>> -2147483648
Traceback (innermost last):
OverflowError: integer literal too large
>>>
__________________________________
Mike C. Fletcher
Designer, VR Plumber
http://members.home.com/mcfletch
More information about the Python-list
mailing list