Upper limit?!

Gerrit Holl gerrit.holl at pobox.com
Mon Aug 30 08:55:06 EDT 1999

On Mon, Aug 30, 1999 at 07:56:59AM +0000, Fredrik Lundh wrote:
> David Oppenheimer <davidopp at megsinet.net> wrote:
> > I was playing around with the command line and discovered that when I
> > enter 2 to the 30th power, I get a number back...when I enter 2 to the
> > 31st power I get an overflow error.  Is 2 to the 30th power near the
> > upper limit for computations?!
> just above it, on a 32-bit platform.  try using
> use long integers instead, and compare the
> result with the sys.maxint value:

And are longs slower too?
If not, one can use longs always!


More information about the Python-list mailing list