diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-03-10 13:49:19 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-03-10 13:49:19 (GMT) |
commit | c51eaf5ca0901f680efb96d7f5400dfc4773a764 (patch) | |
tree | 656c687bcbe3dc7e595682f1b2bc48a75b3a4c75 | |
parent | 02e77d17fae3e9dea5f040375a8ed9ec21259a4b (diff) | |
download | cpython-c51eaf5ca0901f680efb96d7f5400dfc4773a764.zip cpython-c51eaf5ca0901f680efb96d7f5400dfc4773a764.tar.gz cpython-c51eaf5ca0901f680efb96d7f5400dfc4773a764.tar.bz2 |
whatsnew: ChainMap.new_child *m* argument.
And NEWS entry.
-rw-r--r-- | Doc/whatsnew/3.4.rst | 9 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index f41a6ac..e7fd3a9 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -596,6 +596,15 @@ including the Adobe variant. (Contributed by Martin Morrison, the Mercurial 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 -------- @@ -2376,6 +2376,9 @@ Core and Builtins - 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 |