Size of integers (2**32-1)

Paul Rubin phr-n2002a at
Tue Feb 5 04:35:34 EST 2002

Thomas Guettler <st-newsgroups at> writes:

> I have two python version installed:
> with the cygwin version "print 2**32-1" works
> but with the zope version I get OverFlowError.
> Background:
> I want to get a random 32-Bit integer like this randrange(0, 2*32-1)

Values of sys.maxint must be different.  Try: randrange(0,2147483647).

More information about the Python-list mailing list