[Tutor] problem with stirng.find

Fabian von Berlepsch pub at berlepsch.de
Tue Nov 23 02:11:11 CET 2004


I am using pyserail for reading the serial port
I get the following string (print s) :
"\xffS!AAAA\xfe0.005\r\n\xffS!AAAA\xfe0.005\r\n"

When I do 

Import string
Print string.find(s,"S!A")

It prints: 11

What is happening here?

Thank you very much for any advice!

Yours Fabian




More information about the Tutor mailing list