[Python-Dev] Extending struct.unpack to produce nested tuples
Greg Ewing
greg at cosc.canterbury.ac.nz
Sun Nov 23 18:56:41 EST 2003
> Use Case: I have a program written in C that contains a bunch of
> aggregate data structures (arrays of structs, structs containing
> arrays, etc.) and I'm transmitting these structures over a socket
> connection to a Python program that then unpacks the data using the
> struct module.
An alternative would be to teach the C program to write
the data in pickle or marshal format... :-)
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list