[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-dev] return pointer in swig



Keren Lasker wrote:
How can I setup swig so that python will recognize a pointer to a class as the object itself.
In Python everything is a pointer - there's no such thing as "the object 
itself". So, what do you actually want to do?
BTW, if SWIG is giving you PySwigObjects rather than actual proxy class 
objects (i.e. opaque pointers rather than typed pointers), it's probably 
because it hasn't seen a full definition of the MyClass class before it 
encountered the MyClass * function.
	Ben
--
ben@salilab.org                      http://salilab.org/~ben/
"It is a capital mistake to theorize before one has data."
	- Sir Arthur Conan Doyle