I was bored of playing with the ipython console and I came across the following behavior that I really don't understand.
In [1]: 2**2 Out[1]: 4 In [2]: 2**2**2 Out[2]: 16 In [3]: 2**2**2**2 Out[3]: 65536 In [4]: 2**2**2**2**2
The answer to [4] is not 4294967296L, it is a very long number, but I cannot understand why.
The number can be found here: http://pastie.org/475714
(Ubuntu 8.10, python 2.5.2, ipython 0.8.4)
(Mac OS X 10.5.6, Python 2.5.1)
python ipython
fforw
source share