Newbie looking for elegant solution
Paul Rubin
no.email at nospam.invalid
Wed Mar 25 21:09:23 EDT 2015
kai.peters at gmail.com writes:
> I though that the bytes type is Python 3 only? If so, I cannot use it.
In Python 2, the regular string type (str) is a byte vector, though it
is immutable. Do you send one scan line at a time to the rendering
device, or the whole file all at once, or what? Do you want to dump the
output to a disk file and send that to the rendering device as a
separate step? Anyway, use the chr function to turn a number like 65
into a character like 'A'.
More information about the Python-list
mailing list