Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Tomasz Kowaltowski <tomasz@ic...> - 2002-11-15 21:18:56
I noticed that Python and Jython treat differently integers, depending
whether they fit 32 bits. In Python, any number of digits is acceptable,
so that for instance:
x = 1234567890
print x, x*x, x*x*x
produce correct results.
However the print command produces an overflow error message in Jython.
In order to make this example to work one has to add the letter 'L' to
specify an arbitrary length integer:
x = 1234567890L
print x, x*x, X*x*x
Is there any good reason for this different behavior?
PS: I am using Python 2.2.1 and Jython 2.1, under Red Hat 8.0 Linux.