[Python-checkins] peps: Mention the new bit in the GC header
antoine.pitrou
python-checkins at python.org
Fri May 17 23:30:18 CEST 2013
http://hg.python.org/peps/rev/c9440776e935
changeset: 4892:c9440776e935
user: Antoine Pitrou <solipsis at pitrou.net>
date: Fri May 17 23:30:10 2013 +0200
summary:
Mention the new bit in the GC header
files:
pep-0442.txt | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/pep-0442.txt b/pep-0442.txt
--- a/pep-0442.txt
+++ b/pep-0442.txt
@@ -82,7 +82,7 @@
While this PEP discusses CPython-specific implementation details, the
change in finalization semantics is expected to affect the Python
ecosystem as a whole. In particular, this PEP obsoletes the current
-guideline that "objects with a __del__ method should not be part of a
+guideline that "objects with a ``__del__`` method should not be part of a
reference cycle".
@@ -170,6 +170,11 @@
``tp_del`` is not encountered anymore in the CPython source tree (except
for testing purposes).
+On the internal side, a bit is reserved in the GC header for GC-managed
+objects to signal that they were finalized. This helps avoid finalizing
+an object twice (and, especially, finalizing a CT object after it was broken
+by the GC).
+
Discussion
==========
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list