Re: What's your choice when handle complicated C structures.

2008-11-05 Thread Robert Kern
一首诗 wrote: 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

Re: What's your choice when handle complicated C structures.

2008-11-05 Thread Glenn Linderman
On approximately 11/4/2008 5:31 PM, came the following characters from the keyboard of Marc 'BlackJack' Rintsch: On Tue, 04 Nov 2008 16:52:17 -0800, 一首诗 wrote: Now I'm using the upack function of 'struct' module, but it's really annoying to write fmt strings for complicated structures. What

Re: What's your choice when handle complicated C structures.

2008-11-04 Thread Marc 'BlackJack' Rintsch
On Tue, 04 Nov 2008 16:52:17 -0800, 一首诗 wrote: > 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? http://construct.wikispaces.com/ Ciao, Marc 'Bl

Re: What's your choice when handle complicated C structures.

2008-11-04 Thread Daniel Fetchinson
> 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 han

Re: What's your choice when handle complicated C structures.

2008-11-04 Thread Diez B. Roggisch
一首诗 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 choi

What's your choice when handle complicated C structures.

2008-11-04 Thread 一首诗
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 handlin