[newbie] String to binary conversion
Mok-Kong Shen
mok-kong.shen at t-online.de
Mon Aug 6 17:33:13 EDT 2012
Am 06.08.2012 22:59, schrieb Tobiah:
> The binascii module looks like it might have
> something for you. I've never used it.
Thanks for the hint, but if I don't err, the module binascii doesn't
seem to work. I typed:
import binascii
and a line that's given as example in the document:
crc = binascii.crc32("hello")
but got the following error message:
TypeError: 'str' does not support the buffer interface.
The same error message appeared when I tried the other functions.
M. K. Shen
More information about the Python-list
mailing list