OwlCyberSecurity - MANAGER
Edit File: types.pyc
� 7��ac @ s) d Z d g Z d e f d � � YZ d S( s Utilities related to types. t MappingProxyTypec B s� e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� Read-only proxy of a mapping. It provides a dynamic view on the mapping's entries, which means that when the mapping changes, the view reflects these changes. Note that for an ummutable mapping, one would have to prevent modifications to the underlying mapping. Note also that mutable values remain mutable when accessed via a proxy. Backport of Python 3's L{types.MappingProxyType <http://docs.python.org/dev/library/types.html#types.MappingProxyType>}. c C s | | _ d S( sS @param mapping: A mapping to wrap. @type mapping: mapping N( t _mapping( t selft mapping( ( sE /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/types.pyt __init__( s c C s t | j � S( N( t lenR ( R ( ( sE /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/types.pyt __len__/ s c C s | j | S( N( R ( R t key( ( sE /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/types.pyt __getitem__2 s c C s t | j � S( N( t iterR ( R ( ( sE /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/types.pyt __iter__5 s c C s t | j � S( N( t reversedR ( R ( ( sE /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/types.pyt __reversed__8 s c C s | | j k S( N( R ( R R ( ( sE /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/types.pyt __contains__; s c C s | j j � S( N( R t copy( R ( ( sE /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/types.pyR >