Newbie looking for elegant solution

kai.peters at gmail.com kai.peters at gmail.com
Wed Mar 25 21:29:53 EDT 2015


On Wednesday, 25 March 2015 18:10:00 UTC-7, Paul Rubin  wrote:
> nobody 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'.

The whole file. The device polls a storage area for incoming files and display them.



More information about the Python-list mailing list