Philosophical long integer question...
Thomas Wouters
thomas at xs4all.net
Wed Mar 29 18:09:01 EST 2000
On Wed, Mar 29, 2000 at 05:37:52PM +0100, Brian Kelley wrote:
> In the same vein as should 1/2 equal 0.5:
> should (1 << 1000) produce a long int? (It currently produces 0 on a
> machine with 32 bit integers)
Only if 'sys.maxint + 1' does ;)
> (1L << 1000) or (1 << 1000L) work just fine btw.
So do long(sys.maxint) + 1 and sys.maxint + 1L ;)
IIRC this was high on the wishlist for Py3K. it's too much of a change for
python 1.x, i think.
--
Thomas Wouters <thomas at xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
More information about the Python-list
mailing list