owirj added the comment:
Antoine Pitrou:
The reason you get an OverflowError in 32-bit mode is that 2**31 is too large
to be represented as a (signed) C long, rather than unsigned.
I understand that, but after reading documentation, was expecting it to convert
second argument to long type
New submission from owirj :
python -V:
Python 2.6.5
Executing on 32-bit machine.
>From documentation ( http://docs.python.org/reference/expressions.html ),
>"5.7. Shifting operations":
"These operators accept plain or long integers as arguments. The arguments are
conve