Using %x to format number to hex and number of digits

Steve Holden steve at
Sat Nov 6 08:24:15 CET 2010

On 11/5/2010 3:26 PM, Matty Sarro wrote:
> It works, however I'm not sure if it'd be considered very "pythonic" or not.

If working isn't pythonic then nothing is.

> Thanks for your thoughts!

There really are still some amazingly helpful people around here, I am
pleased to note.

Steve Holden           +1 571 484 6266   +1 800 494 3119
Open source meetings? When, and where?  Call for details
PyCon 2011 Atlanta March 9-17
See Python Video!
Holden Web LLC       
Ob Open Source ?     

More information about the Python-list mailing list