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