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..