Long int to int

Paul Rubin phr-n2002a at nightsong.com
Mon Feb 11 06:12:34 EST 2002


Tim Howarth <tim at worthy.demon.co.uk> writes:
> (Or worse, I can convert with eval
> 
> a = str(hex(a))[2:-1]
> a = eval('0x'+a)

  a = eval('0x%x' % a)

might be a little more palatable.  



More information about the Python-list mailing list