Does Boost.Python participate in cyclic gc?

Giovanni Bajo noway at ask.me
Thu Jun 7 03:43:00 EDT 2007


On 05/06/2007 21.32, skip at pobox.com wrote:

> We encountered a situation today where it appeared that a
> Boost.Python-provided class didn't participate in Python's cyclic garbage
> collection.  The wrapped C++ instance held a reference to a method in the
> Python object which referenced the Boostified C++ instance, e.g.:

Those situations get more and more common as you keep wrapping your code. To 
the best of my knowledge, SIP is the only one which does the right thing here.
-- 
Giovanni Bajo



More information about the Python-list mailing list