Trouble converting hex to decimal?

Earl Eiland eee at nmt.edu
Sat Feb 5 08:51:32 EST 2005


I'm trying to process the IP packet length field, as recorded by pcap
(Ethereal) and recovered using pcapy.  When I slice out those bytes, I
get a value that shows in '\x00' format, rather than '0x00'.  Neither
int() nor eval() are working.  How do I handle this?

Earl Eiland




More information about the Python-list mailing list