int() should be extended?

Дамјан Г. пенгуиниста at маил?=.=?iso-8859-5?Q?нет?=.=?iso-8859-5?Q?мк
Mon Oct 21 16:35:58 EDT 2002


>> >>> s = "0x41"
>> >>> int(s[2:])
>> 65
>> 
>> Good luck!

> You have a strange Python processor.  When I run this, I get 41.
> You did run it, right?

    >>> int('0x41',16)
    65


-- 
Дамјан

      Whoa...I did a 'zcat /vmlinuz > /dev/audio' and I think I heard God...




More information about the Python-list mailing list