summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.4.rst
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-09-22 11:26:30 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2013-09-22 11:26:30 (GMT)
commitbe57ab8a34d364112e2e365d1d42bf84236abbc0 (patch)
treed716249fc70cb08f60a948d97d153f75124d0dcd /Doc/whatsnew/3.4.rst
parenta2838878faa5d661914d48350cb3a6a02d925465 (diff)
downloadcpython-be57ab8a34d364112e2e365d1d42bf84236abbc0.zip
cpython-be57ab8a34d364112e2e365d1d42bf84236abbc0.tar.gz
cpython-be57ab8a34d364112e2e365d1d42bf84236abbc0.tar.bz2
Close #19047: weakref doc cleanups
- be clear finalizers survive automatically - update for PEP 442 __del__ changes - mention module cleanup changes and weakref.finalize in What's New
Diffstat (limited to 'Doc/whatsnew/3.4.rst')
-rw-r--r--Doc/whatsnew/3.4.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index 90e4685..60dd94d 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -153,6 +153,10 @@ With it, objects with :meth:`__del__` methods, as well as generators
with :keyword:`finally` clauses, can be finalized when they are part of a
reference cycle.
+As part of this change, module globals are no longer forcibly set to
+:const:`None` during interpreter shutdown, instead relying on the normal
+operation of the cyclic garbage collector.
+
.. seealso::
:pep:`442` - Safe object finalization
@@ -416,9 +420,12 @@ weakref
-------
New :class:`~weakref.WeakMethod` class simulates weak references to bound
-methods.
+methods. (Contributed by Antoine Pitrou in :issue:`14631`.)
-(Contributed by Antoine Pitrou in :issue:`14631`.)
+New :class:`~weakref.finalize` class makes it possible to register a callback
+to be invoked when an object is garbage collected, without needing to
+carefully manage the lifecycle of the weak reference itself. (Contributed by
+Richard Oudkerk in :issue:`15528`)
xml.etree