Skip to content

Commit

Permalink
Move ChainMap versionadded to be less ambiguous.
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Apr 3, 2012
1 parent 39f0037 commit 283b96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 283b96b

Please sign in to comment.