[pypy-commit] pypy default: Issue 2047: add a note
arigo
noreply at buildbot.pypy.org
Sat May 30 15:26:43 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
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
----------------------------
More information about the pypy-commit
mailing list