hex sending

Fredrik Lundh fredrik at pythonware.com
Wed Oct 4 10:25:13 CEST 2006


"hiroc" wrote:

> s.send("abc") # send test string
>
> I need to send hex:"10 06 00 0f 02 bc d1" instead of "abc"

do you want to send seven binary bytes, or pairs of hexadecimal characters
separated by whitespace ?

how do you map from "abc" to "10 06 00 0f 02 bc d1", by the way?  what
encoding is that?

</F> 






More information about the Python-list mailing list