summaryrefslogtreecommitdiffstats
path: root/Doc/library/weakref.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-12-07 00:28:27 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-12-07 00:28:27 (GMT)
commit5db1bb81ff88c90364cfcf458bae8115126411d8 (patch)
tree334a5d67f565b3a103f068a82147b6bede9e1b20 /Doc/library/weakref.rst
parentb9859daeeb8ad767d2b2cc56f72736810114dd49 (diff)
downloadcpython-5db1bb81ff88c90364cfcf458bae8115126411d8.zip
cpython-5db1bb81ff88c90364cfcf458bae8115126411d8.tar.gz
cpython-5db1bb81ff88c90364cfcf458bae8115126411d8.tar.bz2
Issue #22696: Add function :func:`sys.is_finalizing` to know about interpreter shutdown.
Diffstat (limited to 'Doc/library/weakref.rst')
-rw-r--r--Doc/library/weakref.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst
index cc883b1..2e16077 100644
--- a/Doc/library/weakref.rst
+++ b/Doc/library/weakref.rst
@@ -258,7 +258,7 @@ These method have the same issues as the and :meth:`keyrefs` method of
are called in reverse order of creation.
A finalizer will never invoke its callback during the later part of
- the interpreter shutdown when module globals are liable to have
+ the :term:`interpreter shutdown` when module globals are liable to have
been replaced by :const:`None`.
.. method:: __call__()
@@ -527,8 +527,8 @@ follows::
Starting with Python 3.4, :meth:`__del__` methods no longer prevent
reference cycles from being garbage collected, and module globals are
-no longer forced to :const:`None` during interpreter shutdown. So this
-code should work without any issues on CPython.
+no longer forced to :const:`None` during :term:`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 internal details of the interpreter's garbage