convert binary data to int

rubbishemail at rubbishemail at
Wed Jan 10 11:17:58 CET 2007


I need to convert a 3 byte binary string like
"\x41\x00\x00" to 3 int values ( (65,0,0) in this case).
The string might contain characters not escaped with a \x, like

Any ideas?


More information about the Python-list mailing list