Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 283b96b

Browse files
committed
Move ChainMap versionadded to be less ambiguous.
1 parent 39f0037 commit 283b96b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/collections.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Python's general purpose built-in containers, :class:`dict`, :class:`list`,
4141
:class:`ChainMap` objects
4242
-------------------------
4343

44+
.. versionadded:: 3.3
45+
4446
A :class:`ChainMap` class is provided for quickly linking a number of mappings
4547
so they can be treated as a single unit. It is often much faster than creating
4648
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.
9193
The use-cases also parallel those for the builtin :func:`super` function.
9294
A reference to ``d.parents`` is equivalent to: ``ChainMap(*d.maps[1:])``.
9395

94-
.. versionadded:: 3.3
95-
9696
Example of simulating Python's internal lookup chain::
9797

9898
import builtins

0 commit comments

Comments
 (0)