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. -- http://mail.python.org/mailman/listinfo/python-list