[newbie] String to binary conversion

Mok-Kong Shen mok-kong.shen at t-online.de
Mon Aug 6 16:46:38 EDT 2012


If I have a string "abcd" then, with 8-bit encoding of each character,
there is a corresponding 32-bit binary integer. How could I best
obtain that integer and from that integer backwards again obtain the
original string? Thanks in advance.

M. K. Shen



More information about the Python-list mailing list