[Python-checkins] cpython: whatsnew: ChainMap.new_child *m* argument.
r.david.murray
python-checkins at python.org
Mon Mar 10 23:11:28 CET 2014
http://hg.python.org/cpython/rev/b11738a62669
changeset: 89562:b11738a62669
user: R David Murray <rdmurray at bitdance.com>
date: Mon Mar 10 09:49:19 2014 -0400
summary:
whatsnew: ChainMap.new_child *m* argument.
And NEWS entry.
files:
Doc/whatsnew/3.4.rst | 9 +++++++++
Misc/NEWS | 3 +++
2 files changed, 12 insertions(+), 0 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
@@ -596,6 +596,15 @@
project, Serhiy Storchaka, and Antoine Pitrou in :issue:`17618`.)
+collections
+-----------
+
+The :meth:`.ChainMap.new_child` method now accepts an *m* argument specifying
+the child map to add to the chain. This allows an existing mapping and/or a
+custom mapping type to be used for the child. (Contributed by Vinay Sajip in
+:issue:`16613`.)
+
+
colorsys
--------
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2376,6 +2376,9 @@
- Issue #14850: Now a charmap decoder treats U+FFFE as "undefined mapping"
in any mapping, not only in a string.
+- Issue #16613: Add *m* argument to ``collections.Chainmap.new_child`` to
+ allow the new child map to be specified explicitly.
+
- Issue #16730: importlib.machinery.FileFinder now no longers raises an
exception when trying to populate its cache and it finds out the directory is
unreadable or has turned into a file. Reported and diagnosed by
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list