16 Oct
2009
16 Oct
'09
11:50 p.m.
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