Escapes???

Aahz Maruch aahz at netcom.com
Fri Jun 2 11:22:43 EDT 2000


In article <8h87u1$sga$1 at news2atm.raleigh.ibm.com>,
Arinté <shouldbe at message.com> wrote:
>
>I am trying to write this escape seq to a device from python
>"H\x1b\x23\x12art\x1b\x23\x01\n"
>The \x1b\x23\x12 is supposed to be a command tell the device to do something
>special with "art", but python is making it look like this \x1b\x23\x12a
>"rt".  Am I missing something on how to work with escape sequences?  Is
>there another way to write hex values in a string.  I rather us \x00 because
>that is what are testers are familiar with.

I'd like to see some of the actual code.  Firing up the Python
interpreter produces correct resulte for me.
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

Have you coined a word today?  --Aahz



More information about the Python-list mailing list