[Tutor] Re: sending hex data on port
Lloyd Kvam
pythontutor@venix.com
Wed Jun 18 16:15:16 2003
chr(int(hex_string,16)) should do it.
(This does raise the question as to why the data comes in as
hex strings in the first place.)
vicki@stanfield.net wrote:
> That might be it. Is there a function that
> automatically translates between the 0x18 and the chr
> value that I need? I understand how you got the value
> and could write my own, but if it already exists.....
>
> --vicki
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358
voice: 603-443-6155
fax: 801-459-9582