On Wed, Aug 5, 2009 at 12:44 AM, D'Arcy J.M. Cain <da...@druid.net> wrote:
> On Wed, 5 Aug 2009 00:39:56 +1000 >> Xavier Ho <cont...@xavierho.com> wrote: >> > So, what am I doing wrong here? >> > >> > >>> int(str(0x00F0), 16) >> >> Look at the output of str(0x00F0) for a clue. >> > > ... Wow. I *am* slow tonight. Thanks. > > >>> int('00F0', 16) > 240 > (oops.) I was mixing the hex literals and the string literals. Thanks a bunch. -Xav
-- http://mail.python.org/mailman/listinfo/python-list