diff options
author | Raymond Hettinger <python@rcn.com> | 2011-01-08 23:50:39 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-01-08 23:50:39 (GMT) |
commit | c4c52dd23d4d365952fb7f653f72f38154e4d331 (patch) | |
tree | 74f69f2676f530b4ad25feef2e15c1376c6f7dd4 | |
parent | d43245a965dc83db34063b22071fde143b81a490 (diff) | |
download | cpython-c4c52dd23d4d365952fb7f653f72f38154e4d331.zip cpython-c4c52dd23d4d365952fb7f653f72f38154e4d331.tar.gz cpython-c4c52dd23d4d365952fb7f653f72f38154e4d331.tar.bz2 |
Issue 10357: Clarify what it means to be a mapping.
-rw-r--r-- | Doc/glossary.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index d16e359..eab35f7 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -442,9 +442,11 @@ Glossary :term:`finder`. See :pep:`302` for details. mapping - A container object (such as :class:`dict`) which supports arbitrary key - lookups using the special method :meth:`__getitem__`. Mappings also - support :meth:`__len__`, :meth:`__iter__`, and :meth:`__contains__`. + A container object that supports arbitrary key lookups and implements the + methods specified in the :class:`Mapping` or :class:`MutableMapping` + :ref:`abstract base classes <abstract-base-classes>`. Examples include + :class:`dict`, :class:`collections.defaultdict`, + :class:`collections.OrderedDict` and :class:`collections.Counter`. metaclass The class of a class. Class definitions create a class name, a class |