
curt at hagenlocher
Nov 1, 2009, 7:49 PM
Post #2 of 3
(236 views)
Permalink
|
On Sun, Nov 1, 2009 at 8:22 PM, Sturla Molden <sturla [at] molden> wrote: > > Why does this happen? > > >>> type(2**31-1) > <type 'long'> Does that not happen on non-Windows platforms? 2**31 can't be represented as a 32-bit signed integer, so it's automatically promoted to a long. -- Curt Hagenlocher curt [at] hagenlocher _______________________________________________ Python-Dev mailing list Python-Dev [at] python http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com
|