The following simple interface file defines a
constructor, destructor and an integer data member.
When this is run through swig-1.3.8 using:
swig -c++ -python -shadow -no_default spam.i
I find code for delete_Spam(), Spam_data_set()
and Spam_data_get() in the wrapper code. But new_Spam()
(or whatever should make a new Spam) seems to be
missing. The shadow file has two constructors:
So, I think that a new instance of Spam
can not be created from python (since we
don't have a this). Or am I missing
Log in to post a comment.