Re: C struct to Python

2010-11-30 Thread geremy condra
On Tue, Nov 30, 2010 at 10:57 AM, Eric Frederich wrote: > I am not sure how to proceed. > I am writing a Python interface to a C library. > The C library uses structures. > I was looking at the struct module but struct.unpack only seems to > deal with data that was packed using struct.pack or some

C struct to Python

2010-11-30 Thread Eric Frederich
I am not sure how to proceed. I am writing a Python interface to a C library. The C library uses structures. I was looking at the struct module but struct.unpack only seems to deal with data that was packed using struct.pack or some other buffer. All I have is the struct itself, a pointer in C. Is