mirror of
https://github.com/python/cpython.git
synced 2025-11-16 00:38:11 +00:00
Issue #10357: Clarify what it means to be a mapping.
This commit is contained in:
parent
4ad934f63c
commit
e3ee66f141
1 changed files with 5 additions and 3 deletions
|
|
@ -428,9 +428,11 @@ Glossary
|
||||||
:class:`importlib.abc.Loader` for an :term:`abstract base class`.
|
:class:`importlib.abc.Loader` for an :term:`abstract base class`.
|
||||||
|
|
||||||
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…
Add table
Add a link
Reference in a new issue