From: Nick Coghlan Date: Sun, 22 Sep 2013 11:32:12 +0000 (+1000) Subject: Avoid inconsistent use of 'finalizer' X-Git-Tag: v3.4.0a3~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c7fe6a5add2d773ae3a85679d22414d8eafe66c;p=python Avoid inconsistent use of 'finalizer' --- diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index ea8100f967..e84ac2bc0a 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -540,8 +540,8 @@ no longer forced to :const:`None` during interpreter shutdown. So this 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