What's your choice when handle complicated C structures.

Diez B. Roggisch deets at nospam.web.de
Tue Nov 4 20:03:59 EST 2008


一首诗 schrieb:
> Hi all,
> 
> Recently I am writing a small network application with python.
> 
> The protocol is binary based and defined in c header files.
> 
> Now I'm using the upack function of 'struct' module, but it's really
> annoying to write fmt strings for complicated structures.
> 
> What will be your choice when handling binary structures?

You can try gccxml + ctypes instead.

Diez



More information about the Python-list mailing list