Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r77708:ed28d1a8474c
Date: 2015-05-30 15:26 +0200
http://bitbucket.org/pypy/pypy/changeset/ed28d1a8474c/

Log:    Issue 2047: add a note

diff --git a/pypy/doc/cpython_differences.rst b/pypy/doc/cpython_differences.rst
--- a/pypy/doc/cpython_differences.rst
+++ b/pypy/doc/cpython_differences.rst
@@ -190,6 +190,11 @@
 just make sure there is a ``__del__`` method in the class to start with
 (even containing only ``pass``; replacing or overriding it later works fine).
 
+Last note: CPython tries to do a ``gc.collect()`` automatically when the
+program finishes; not PyPy.  (It is possible in both CPython and PyPy to
+design a case where several ``gc.collect()`` are needed before all objects
+die.  This makes CPython's approach only work "most of the time" anyway.)
+
 
 Subclasses of built-in types
 ----------------------------
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to