Does Python provide "Struct" data structure?
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Sep 22 11:48:12 EDT 2006
Daniel Mark wrote:
> I have two following questions:
>
> 1> Does Python provide such Struct in this standard libary.
> Python has "4.3 struct -- Interpret strings as packed binary
> data", but it looks like different from what I really want to get.
Yes, that module is used when you want to deal with C structs in
binary form (e.g. useful at networking with binary protocols).
Try using dictionaries or custom, field-only class instances
as "struct".
Regards,
Björn
--
BOFH excuse #374:
It's the InterNIC's fault.
More information about the Python-list
mailing list