[Tutor] Will someone please tell me how to read this?
Lane, Frank L
frank.l.lane at boeing.com
Mon Aug 22 20:18:27 CEST 2005
Hi List,
I cut and pasted a dump from recvfrom below. I can't read it and don't
where to look in the documentation to figure out how to read this.
Is there a name for this type of number? I'm assuming the \x means it's
hex, but then you have things like \x00h, and \x007p^.
Any help here is greatly appreciated.
Code snippet:
text = server.recvfrom(1024)
print repr(text)
'\x05\x01\x03\x02\x05\xaf\xce\x04\x00h\x00\x00\x00\x01\x007\x00\x01\x00\
x01\x007p^\x00\x00\x00\x00\x00\x00\x00\x01\x007\x00\x04\x00\x00\x00\x00\
x00\x00\x00\x00\x00\x00\x00\x00AN\x94\n\x923\xcaXA$s\xdc(\x1e\xcf\xbaAR\
xb6\xc9\x1c\x1e%#\x02\x02\x00\xe1\x00\x00\x00\x00\x00\x00\x03\xe8\x00\x0
1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x0
0'
Thanks,
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050822/8a22a9e6/attachment.htm
More information about the Tutor
mailing list