hex notation funtion
Grant Edwards
grante at visi.com
Tue Jan 18 14:43:17 EST 2005
More information about the Python-list mailing list
Tue Jan 18 14:43:17 EST 2005
- Previous message (by thread): hex notation funtion
- Next message (by thread): hex notation funtion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2005-01-18, Grant Edwards <grante at visi.com> wrote: > On 2005-01-18, tertius <terti at mighty.co.za> wrote: > >> Is there a builtin function that will enable me to display the hex >> notation of a given binary string? (example below) > > ' '.join('%02x' % ord(b) for b in s) Oops. Should be: ' '.join(['%02x' % ord(b) for b in s]) -- Grant Edwards grante Yow! .. Am I in a SOAP at OPERA?? visi.com
- Previous message (by thread): hex notation funtion
- Next message (by thread): hex notation funtion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list