hex sending

Tim Roberts timr at probo.com
Thu Oct 5 09:38:45 CEST 2006


"hiroc" <hiroc13 at hotmail.com> wrote:

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

One ugly way is
  s.send( "\x10\x06\x00\x0f\x02\xbc\xd1" )
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list