>>> int('0x20', 16) ValueError: invalid integer number literal Same for long. Python library reference isn't clear on this point, but my reading doesn't support this misfeature since one can use radix 0 to the same effect. Anyway, there are codes out there depending on this. :( -- Seo Sanghyeon