Re: [C++-sig] Using destructors in the right way

2008-11-06 Thread Renato Araujo
Hi Luciano You can use in your class definition something like that: class_ but I don't know why this not work when you have custom constructors like that: class_ ("MyClass", python::no_init) .def("__init__", python::make_constructor(my_constructor)) BR Renato On Tue, Nov 4, 2008 a

[C++-sig] Using destructors in the right way

2008-11-04 Thread Luciano M. Wolf
Hi all, I'm using boost::python to make bindings and now I got in trouble. I'm trying to avoid Python deleting my C++ class before other classes but I didn't find any clue on how to do this. Is there a way to tell boost that my object should be the last one to be deleted? Thanks in advance! Regar