/usr/lib/python3/dist-packages/zope/interface/common/__pycache__
Edit: /usr/lib/python3/dist-packages/zope/interface/common/__pycache__/mapping.cpython-310.pyc (7228B)
o
$
x`R @ s d Z ddlmZ ddlmZ ddlmZ G dd deZG dd dej eZ
G d d
d
eZG dd deje
Z
G d
d dee
ZG dd de
ZG dd deZG dd deZG dd deZG dd dejeeeeZdS )ah
Mapping Interfaces.
Importing this module does *not* mark any standard classes as
implementing any of these interfaces.
While this module is not deprecated, new code should generally use
:mod:`zope.interface.common.collections`, specifically
:class:`~zope.interface.common.collections.IMapping` and
:class:`~zope.interface.common.collections.IMutableMapping`. This
module is occasionally useful for its extremely fine grained breakdown
of interfaces.
The standard library :class:`dict` and :class:`collections.UserDict`
implement ``IMutableMapping``, but *do not* implement any of the
interfaces in this module.
) Interface)PYTHON2)collectionsc @ e Zd ZdZdd ZdS )IItemMappingz%Simplest readable mapping object
c C dS )z`Get a value for a key
A `KeyError` is raised if there is no value for the key.
N keyr r ?/usr/lib/python3/dist-packages/zope/interface/common/mapping.py__getitem__' zIItemMapping.__getitem__N)__name__
__module____qualname____doc__r r r r r r # s r c @ s" e Zd ZdZdddZdd ZdS )IReadMappingz^
Basic mapping interface.
.. versionchanged:: 5.0.0
Extend ``IContainer``
Nc C r )zaGet a value for a key
The default is returned if there is no value for the key.
Nr r
defaultr r r get6 r
zIReadMapping.getc C r )z$Tell if a key exists in the mapping.Nr r r r r __contains__<