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
Hi, Thanks a lot for your responses. It cleared up a lot for me !! Its a superglue developed and used in house and cannot be revealed .. sorry for that !! I am only extending to the existing glue. Have contacted the author regarding the problem. Sorry for confusion -Sudheer John Machin wr

Re: Using C struct in Python

2006-06-07 Thread John Machin
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 "change X to Y" instead of reposting the whole thing. > > I am

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 *