There are two problems in python.cxx, that I think
I have fixed (patch relative to 1.3a5 attached):
1) typemap(python,freearg) would generate incorrect
code, so you would free()/delete the PyObject
instead of the native C/C++ object $target
created in the previous typemap(python, in) code.
(instead the original code deletes $source!)
2) there is a problem with the generated shadow
classes that setting "self.this" in the __init__
function causes python 2.0 and 2.1 to choke.
(For some reason python dies in __setattr__ when
checking if (name == "this") or (name == "thisown):
I changed the generated python code to use the
uglier self.__dict__["this"] form and the problem