summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-01-08 23:44:37 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-01-08 23:44:37 (GMT)
commite3ee66f141706d1220129dcc53b990e66507f5f2 (patch)
tree72b73acb436d900dcedd049fdf39dccaed551484 /Doc
parent4ad934f63c9421702e906a0046e38a0d3a7c3aab (diff)
downloadcpython-e3ee66f141706d1220129dcc53b990e66507f5f2.zip
cpython-e3ee66f141706d1220129dcc53b990e66507f5f2.tar.gz
cpython-e3ee66f141706d1220129dcc53b990e66507f5f2.tar.bz2
Issue #10357: Clarify what it means to be a mapping.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/glossary.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 9ec61de..ec8af62 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -428,9 +428,11 @@ Glossary
:class:`importlib.abc.Loader` for an :term:`abstract base class`.
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