[C++-sig] instance_holder::uninstall

2009-01-27 Thread Tim Prepscius
Does this look about right? Perhaps this should be added to the standard installation. Necessary for forcing disconnects from python objects on the c++ side... // Uninstall the instance data for a C++ object from a Python instance // object. void instance_holder::uninstall(PyObject* self) throw()

[C++-sig] built-in submodule creation

2009-01-15 Thread Tim Prepscius
Greetings, I am trying to create built-in sub modules.. I have read everything I can on this subject.. And I've tried many many possible solutions.. And lost many hours actually (blech). Some of the e-mails in these newsgroups from long ago are quite misleading.. Other e-mails on this topic s

Re: [C++-sig] custom constructor with embedded back reference

2008-12-21 Thread Tim Prepscius
I just wanted to add one more clarification, because actually there is a bug in the code I posted.. For this late binding to work properly.. You really want to have something like this (sorry, ripping from non-test code): template struct PAccessorConverter { static PyObject* convert(const T

[C++-sig] custom constructor with embedded back reference

2008-12-20 Thread Tim Prepscius
I just wanted to thank http://mail.python.org/pipermail/cplusplus-sig/2007-July/012293.html I've extended what he wrote.. I needed late binding for c++ to python objects. Hope this is useful for someone else. Maybe there was some other way I was supposed to do this, but I couldn't find it. Um..