kai.pet...@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'. -- https://mail.python.org/mailman/listinfo/python-list