[Stackless] Patch for pickle problem on 64bit platforms

Santiago Gala santiago.gala at gmail.com
Sat Oct 20 17:58:03 CEST 2007

El sáb, 20-10-2007 a las 10:00 +0000, Kristján Valur Jónsson escribió:
> Hm, come to think of it, PyInt_FromLong() et al all expose this 'long'
> discrepancy.  So, is a normal python integer 64 bits on linux 64?

Yes. I got a test case failing when I upgraded my machine from linux-ppc
(32) to linux-amd64 because the expected answer to fac(13) was
6227020800L and linux 64bits gives 6227020800 (no "L") instead. I
changed the test to

>>> fac(21)

as fac(20) is still a "regular" int (2432902008176640000) in 64 bits, so
I'm safe for a few years, and I hope the int/long unification in py3k
will free me of this problem.


More information about the Stackless mailing list