Re: Using C struct in Python

2006-06-08 Thread Sudheer Gupta
Dennis Lee Bieber wrote: > On Wed, 07 Jun 2006 17:35:58 -0400, Sudheer Gupta <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > >> print cp >> print cp.next >> >> There is a typo in this. Second statement was suppose to be cp = cp.next. I corrected it latter with

Re: Using C struct in Python

2006-06-07 Thread Sudheer Gupta
quot;change X to Y" instead of > reposting the whole thing. > >> >> 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 *n

Re: Using C struct in Python

2006-06-07 Thread John Machin
ing the whole thing. > > 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, n

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, na

Using C struct in Python

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

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