Re: Using C struct in Python** corrected

2006-06-07 Thread Fredrik Lundh
Sudheer Gupta wrote: > I am having trouble using C struct in python. Hope anyone can help me > out ... > > Say, I have my C struct as > > typedef struct call > { > struct call *next; > // . > > } call_t; > > I have a global variable, namely call_pool, which is of type call_t *

Using C struct in Python** corrected

2006-06-07 Thread Sudheer Gupta
Hi, I am having trouble using C struct in python. Hope anyone can help me out ... Say, I have my C struct as typedef struct call { struct call *next; // . } call_t; I have a global variable, namely call_pool, which is of type call_t * My python program: cp = call_pool # no