Byte oriented data types in python

Ravi ra.ravi.rav at gmail.com
Sat Jan 24 19:55:30 CET 2009


I have following packet format which I have to send over Bluetooth.

packet_type (1 byte unsigned) || packet_length (1 byte unsigned) ||
packet_data(variable)

How to construct these using python data types, as int and float have
no limits and their sizes are not well defined.



More information about the Python-list mailing list