[Python-checkins] cpython: Rewrite module-globals summary entry, and expand the full description a bit.

r.david.murray python-checkins at python.org
Sun Dec 22 20:11:22 CET 2013


http://hg.python.org/cpython/rev/daa85dbabffb
changeset:   88134:daa85dbabffb
user:        R David Murray <rdmurray at bitdance.com>
date:        Sun Dec 22 14:05:11 2013 -0500
summary:
  Rewrite module-globals summary entry, and expand the full description a bit.

files:
  Doc/whatsnew/3.4.rst |  9 ++++++---
  1 files changed, 6 insertions(+), 3 deletions(-)


diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -124,11 +124,11 @@
 CPython implementation improvements:
 
 * :pep:`442`: :ref:`Safe object finalization <whatsnew-pep-442>`
+* Leveraging :pep:`442`, :ref:`module globals are no longer set to None
+  during finalization <whatsnew-pep-442>`, in most cases (:issue:`18214`).
 * :pep:`445`: :ref:`Configurable memory allocators <whatsnew-pep-445>`
 * :pep:`456`: :ref:`Secure and interchangeable hash algorithm <whatsnew-pep-456>`
 * :pep:`436`: :ref:`Argument Clinic <whatsnew-pep-436>`.
-* Improve finalization of Python modules to avoid setting their globals
-  to None, in most cases (:issue:`18214`).
 * A more efficient :mod:`marshal` format (:issue:`16475`).
 
 Please read on for a comprehensive list of user-facing changes.
@@ -933,7 +933,10 @@
 
 As part of this change, module globals are no longer forcibly set to
 :const:`None` during interpreter shutdown in most cases, instead relying
-on the normal operation of the cyclic garbage collector.
+on the normal operation of the cyclic garbage collector.  This avoids a
+whole class of interpreter-shutdown-time errors, usually involving
+``__del__`` methods, that have plagued Python since the cyclic GC
+was first introduced.
 
 .. seealso::
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list