mirror of https://github.com/python/cpython
Issue 10357: Clarify what it means to be a mapping.
This commit is contained in:
parent
d43245a965
commit
c4c52dd23d
|
@ -442,9 +442,11 @@ Glossary
|
||||||
:term:`finder`. See :pep:`302` for details.
|
:term:`finder`. See :pep:`302` for details.
|
||||||
|
|
||||||
mapping
|
mapping
|
||||||
A container object (such as :class:`dict`) which supports arbitrary key
|
A container object that supports arbitrary key lookups and implements the
|
||||||
lookups using the special method :meth:`__getitem__`. Mappings also
|
methods specified in the :class:`Mapping` or :class:`MutableMapping`
|
||||||
support :meth:`__len__`, :meth:`__iter__`, and :meth:`__contains__`.
|
:ref:`abstract base classes <abstract-base-classes>`. Examples include
|
||||||
|
:class:`dict`, :class:`collections.defaultdict`,
|
||||||
|
:class:`collections.OrderedDict` and :class:`collections.Counter`.
|
||||||
|
|
||||||
metaclass
|
metaclass
|
||||||
The class of a class. Class definitions create a class name, a class
|
The class of a class. Class definitions create a class name, a class
|
||||||
|
|
Loading…
Reference in New Issue