Long int to int
phr-n2002a at nightsong.com
Mon Feb 11 14:32:05 CET 2002
Tim Howarth <tim at worthy.demon.co.uk> writes:
> > That's the result I get in Python 2.2. I don't have 2.1 on this system.
> > 1.5.2 raises an exception when it tries to convert 0xFFFFFFFFL to hex.
> Stupid me, yes so it does - I think I might have tried using 8FFFFFFF
> for some reason !
Basically I think the int function should not barf if you give it a
string arg like FFFFFFFF with base 16. Failing that, maybe there could
be some way of telling it not to barf, because you want an unsigned result.
More information about the Python-list