Current File : //usr/lib/python3/dist-packages/zope/interface/common/__pycache__/mapping.cpython-312.pyc |
�
��eE � �F � d Z ddlmZ ddlmZ G d� de� Z G d� dej e� Z G d� d e� Z G d
� dej e� Z
G d� d
ee
� Z G d� de
� Z G d� de� Z
G d� de� Z G d� de� Z G d� dej eee
e� Zy)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)�collectionsc � � e Zd ZdZd� Zy)�IItemMappingz%Simplest readable mapping object
c � � y)z`Get a value for a key
A `KeyError` is raised if there is no value for the key.
N� ��keys �?/usr/lib/python3/dist-packages/zope/interface/common/mapping.py�__getitem__zIItemMapping.__getitem__&