Re: ctypes Structure serialization

2010-02-08 Thread rych
OK, an easier question, hopefully. How to unpack all fields from ctypes Structure line by line and save into the name-value pairs? -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes Structure serialization

2010-02-08 Thread Lawrence D'Oliveiro
In message 615b1271-a9b0-4558-8e45- e4370698d...@a16g2000pre.googlegroups.com, rych wrote: I'm not quite familiar with python serialization but the picle module, at least, doesn't seem to be able to serialize a ctypes Structure with array-fields. Remember that a ctypes structure is supposed

ctypes Structure serialization

2010-02-07 Thread rych
I'm not quite familiar with python serialization but the picle module, at least, doesn't seem to be able to serialize a ctypes Structure with array-fields. Even if it was, the ASCII file produced is not in a human-friendly format. Could someone please suggest a method of saving and loading the