[Python-checkins] cpython: Avoid inconsistent use of 'finalizer'
nick.coghlan
python-checkins at python.org
Sun Sep 22 13:32:25 CEST 2013
http://hg.python.org/cpython/rev/0c17a461f34c
changeset: 85779:0c17a461f34c
user: Nick Coghlan <ncoghlan at gmail.com>
date: Sun Sep 22 21:32:12 2013 +1000
summary:
Avoid inconsistent use of 'finalizer'
files:
Doc/library/weakref.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst
--- a/Doc/library/weakref.rst
+++ b/Doc/library/weakref.rst
@@ -540,8 +540,8 @@
code should work without any issues on CPython.
However, handling of :meth:`__del__` methods is notoriously implementation
-specific, since it depends on how the interpreter's garbage collector
-handles reference cycles and finalizers.
+specific, since it depends on internal details of the interpreter's garbage
+collector implementation.
A more robust alternative can be to define a finalizer which only references
the specific functions and objects that it needs, rather than having access
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list