[Python-talk] How to print a bunch o bytes in hex?

Tyson Sawyer tyson at j3.org
Wed Sep 23 13:20:24 EDT 2009


On Wed, Sep 23, 2009 at 1:14 PM, Tyson Sawyer <tyson at j3.org> wrote:
>       print "0x%02x" % x

http://docs.python.org/library/stdtypes.html#string-formatting-operations

-- 
Tyson D Sawyer

A strong conviction that something must be done is the parent
of many bad measures.   - Daniel Webster


More information about the Python-talk mailing list