pack and unpack problems

Jeff Epler jepler at unpythonic.net
Wed Jun 18 04:19:25 CEST 2003


>>> import struct
>>> data = "x" * 18
>>> print struct.unpack("xxLxx8c", data)
(2021161080L, 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x')

Jeff





More information about the Python-list mailing list