Re: Python C Object Comparison

2005-01-07 Thread Anand K Rayudu
Dear Craig, Thanks a lot for the suggestions. I am just considering to create a user defined data type to  wrap the C pointer. I can add compare method for that data type. So all my APIs returns the new data type rather than PythonC Object. But hoping that it is not lot of over head with res

Re: Python C Object Comparison

2005-01-06 Thread Craig Ringer
On Thu, 2005-01-06 at 18:34, Anand K Rayudu wrote: > Here is my python code > > import myModule > > a=myModule.myAPI1("1") > b=myModule.myAPI2("name") > > # basically both above functions return same C pointer. > # so i want to compare > if(a==b): print "They are same" > else : print "They are