Python: fix bug with missing wrapper registration for objects created directly via the python constructor
--- a/bindings/python/ns3modulegen_core_customizations.py Mon Oct 20 13:31:25 2008 +0200
+++ b/bindings/python/ns3modulegen_core_customizations.py Mon Oct 20 16:56:40 2008 +0100
@@ -424,6 +424,7 @@
return -1;
}
%(CONSTRUCT_CODE)s
+ PyNs3ObjectBase_wrapper_registry[(void *) self->obj] = (PyObject *) self;
return 0;
}
''' % dict(WRAPPER_NAME=wrapper_name, PYSTRUCT=cls.pystruct, CLASS_NAME=cls.full_name,