diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-09-22 11:32:12 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-09-22 11:32:12 (GMT) |
commit | 4c7fe6a5add2d773ae3a85679d22414d8eafe66c (patch) | |
tree | 4c0a1b1a932af86159721cc97f7e376099a80398 /Doc/library/weakref.rst | |
parent | be57ab8a34d364112e2e365d1d42bf84236abbc0 (diff) | |
download | cpython-4c7fe6a5add2d773ae3a85679d22414d8eafe66c.zip cpython-4c7fe6a5add2d773ae3a85679d22414d8eafe66c.tar.gz cpython-4c7fe6a5add2d773ae3a85679d22414d8eafe66c.tar.bz2 |
Avoid inconsistent use of 'finalizer'
Diffstat (limited to 'Doc/library/weakref.rst')
-rw-r--r-- | Doc/library/weakref.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index ea8100f..e84ac2b 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 |