For a single byte, struct.pack('<B',<int>) For two bytes, struct.pack('<H',<int>) what if I want three bytes ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20100106/47703f15/attachment.html>