[pypy-dev] cppyy - garbage collecting of foreign objects

Александр Киранов xhaskx at gmail.com
Sat May 10 23:35:47 CEST 2014


Hi all!

I have a large C++ application and I want to use functions/classes from it
in pypy.
I use cppyy.
My application has own memory managing policy (references counting).
That's why I need to *catch* moment when pypy is deleting foreign C++
objects - all of it should be "released" before pypy exits.

Can anybody advice a solution in my case? Some using of gc module or some
other?
Also I tried to change __del__ method of W_CPPInstance in
.../pypy/module/cppyy/interp_cppyy.py. Is it right way?

Sorry for my bad english, I hope you can understand me :)

---
Best regards,
Alexander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20140511/0e62145c/attachment.html>


More information about the pypy-dev mailing list