Author: Armin Rigo <[email protected]>
Branch: gc-del
Changeset: r63656:d9167e6bc4a8
Date: 2013-04-26 18:27 +0200
http://bitbucket.org/pypy/pypy/changeset/d9167e6bc4a8/

Log:    Document this design decision.

diff --git a/pypy/module/cppyy/interp_cppyy.py 
b/pypy/module/cppyy/interp_cppyy.py
--- a/pypy/module/cppyy/interp_cppyy.py
+++ b/pypy/module/cppyy/interp_cppyy.py
@@ -1082,6 +1082,9 @@
 
     def invoke_finalizer(self):
         if self.python_owns:
+            # Use finalizer_perform() as the safe solution.  We could also
+            # call destruct() directly, but this could have bad effects in
+            # case the C++ destructor invokes more Python code.
             self.finalizer_perform(self.space, '__del__() method of ',
                                    self.destruct)
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to