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

Re: Using C struct in Python

2006-06-07 Thread Sudheer Gupta
wrote: > On 8/06/2006 7:35 AM, Sudheer Gupta wrote: >> Hi, > > Hi. > > Your later "correction" doesn't clear up the confusion below. Quick > eye-balling revealed no difference. If you have to correct a minor > typo in a posting, please consider saying &

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 # no