]> granicus.if.org Git - python/commitdiff
Move ChainMap versionadded to be less ambiguous.
authorGeorg Brandl <georg@python.org>
Tue, 3 Apr 2012 07:16:46 +0000 (09:16 +0200)
committerGeorg Brandl <georg@python.org>
Tue, 3 Apr 2012 07:16:46 +0000 (09:16 +0200)
Doc/library/collections.rst

index 5298dbcabe8e73f2a501c83d5baeef9286932e05..71c27ed8483cd4f60f10391b5825cdb42d014a8d 100644 (file)
@@ -41,6 +41,8 @@ Python's general purpose built-in containers, :class:`dict`, :class:`list`,
 :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 class can be used to simulate nested scopes and is useful in templating.
       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