Jussi Piitulainen wrote: > Peter Otten writes:
>> >>> "{:o}".format(0xf4)
>> '364'
>> To add a prefix just put it into the format string.
> There's also these (in Python 3.2.3):
>
> >>> hex(0xf4)
> '0xf4'
D'oh!
--
https://mail.python.org/mailman/listinfo/python-list
