[Python-checkins] cpython: Move ChainMap versionadded to be less ambiguous.

georg.brandl python-checkins at python.org
Tue Apr 3 09:16:40 CEST 2012


http://hg.python.org/cpython/rev/555f5fe53341
changeset: 76090:555f5fe53341
user: Georg Brandl <georg at python.org>
date: Tue Apr 03 09:16:46 2012 +0200
summary:
 Move ChainMap versionadded to be less ambiguous.
files:
 Doc/library/collections.rst | 4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -41,6 +41,8 @@
 :class:`ChainMap` objects
 -------------------------
 
+.. versionadded:: 3.3
+
 A :class:`ChainMap` class is provided for quickly linking a number of mappings
 so they can be treated as a single unit. It is often much faster than creating
 a new dictionary and running multiple :meth:`~dict.update` calls.
@@ -91,8 +93,6 @@
 The use-cases also parallel those for the builtin :func:`super` function.
 A reference to ``d.parents`` is equivalent to: ``ChainMap(*d.maps[1:])``.
 
- .. versionadded:: 3.3
-
 Example of simulating Python's internal lookup chain::
 
 import builtins
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /