/usr/lib/python3/dist-packages/zope/interface/common/__pycache__
NameSizeModeActions
builtins.cpython-310.pyc34560644editdlrm
collections.cpython-310.pyc77740644editdlrm
idatetime.cpython-310.pyc242980644editdlrm
interfaces.cpython-310.pyc70430644editdlrm
io.cpython-310.pyc13190644editdlrm
mapping.cpython-310.pyc72280644editdlrm
numbers.cpython-310.pyc21120644editdlrm
sequence.cpython-310.pyc87850644editdlrm
__init__.cpython-310.pyc87350644editdlrm
Edit: /usr/lib/python3/dist-packages/zope/interface/common/__pycache__/collections.cpython-310.pyc (7774B)
o $ x`@sdZddlmZddlZddlmZzddlmZWn ey'ddlZYnwddlmZzddlm Z ddlm Z dd lm Z Wney]ddl m Z dd l m Z dd l m Z Ynwdd l mZdd l mZdd lmZddlmZejdddkZejdddkZefdfddZgdZGdddeZGdddeZGdddeZGdddeZGdddeZGd d!d!eZGd"d#d#eZ Gd$d%d%e eeZ!Gd&d'd'ee!Z"Gd(d)d)e"Z#Gd*d+d+e"Z$Gd,d-d-e!Z%Gd.d/d/e%Z&Gd0d1d1e!Z'Gd2d3d3e'Z(Gd4d5d5e Z)Gd6d7d7e)e%Z*Gd8d9d9e)e%Z+Gd:d;d;e)e!Z,Gdd?d?e-Z.Gd@dAdAeZ/GdBdCdCe/Z0GdDdEdEe0Z1dS)Fa Interface definitions paralleling the abstract base classes defined in :mod:`collections.abc`. After this module is imported, the standard library types will declare that they implement the appropriate interface. While most standard library types will properly implement that interface (that is, ``verifyObject(ISequence, list()))`` will pass, for example), a few might not: - `memoryview` doesn't feature all the defined methods of ``ISequence`` such as ``count``; it is still declared to provide ``ISequence`` though. - `collections.deque.pop` doesn't accept the ``index`` argument of `collections.abc.MutableSequence.pop` - `range.index` does not accept the ``start`` and ``stop`` arguments. .. versionadded:: 5.0.0 )absolute_importN)ABCMeta)abc) OrderedDict)UserList)UserDict) UserString)IterableUserDict)PYTHON2)PYTHON3) ABCInterface)optional))rcCs:|rtt|St||dd|i}|D]}||q|S)N__doc__z4The ABC %s is not defined in this version of Python.)getattrrrregister)nameverbases_if_missingregister_if_missingmissingcrrC/usr/lib/python3/dist-packages/zope/interface/common/collections.py _new_in_verJs  r)IAsyncGeneratorIAsyncIterableIAsyncIterator IAwaitable ICollection IContainer ICoroutine IGenerator IHashable IItemsView IIterable IIterator IKeysViewIMapping IMappingViewIMutableMappingIMutableSequence IMutableSet IReversible ISequenceISetISized IValuesViewc@eZdZejZeddZdS)r#cCdS)z Optional method. If not provided, the interpreter will use ``__iter__`` or the old ``__getitem__`` protocol to implement ``in``. Nrotherrrr __contains__zzIContainer.__contains__N)__name__ __module__ __qualname__r Containerr r9rrrrr#wr#c@eZdZejZdS)r&N)r;r<r=rHashablerrrrr& r&c@r5)r(cCr6z Optional method. If not provided, the interpreter will implement `iter` using the old ``__getitem__`` protocol. Nrrrrr__iter__r:zIIterable.__iter__N)r;r<r=rIterabler rDrrrrr(r?r(c@r@)r)N)r;r<r=rIteratorrrrrr)rBr)c@s*eZdZedeefZeddZ dS)r0 ReversiblecCr6z Optional method. If this isn't present, the interpreter will use ``__len__`` and ``__getitem__`` to implement the `reversed` builtin. Nrrrrr __reversed__r:zIReversible.__reversed__N) r;r<r=rPY36r(getABCrr rIrrrrr0sr0c@seZdZedeefZdS)r% GeneratorN)r;r<r=rPY35r)rKrrrrrr%sr%c@r@)r3N)r;r<r=rSizedrrrrr3rBr3c@s*eZdZedeeeefZ dS)r" CollectionN) r;r<r=rrJr3rKr(r#rrrrrr"sr"c@sBeZdZejZefZeeure fndZ e ddZ e ddZ dS)r1rcCr6rHrrrrrrIr:zISequence.__reversed__cCr6rCrrrrrrDr:zISequence.__iter__N)r;r<r=rSequencer extra_classesstrbytes basestringignored_classesr rIrDrrrrr1s r1c@seZdZejZefZdS)r.N)r;r<r=rMutableSequencerrQrrrrr.s r.c@s(eZdZdZedeefee fZ dS) IByteStringz/ This unifies `bytes` and `bytearray`. ByteStringN) r;r<r=rrPY3r1rKrS bytearrayrrrrrrWs rWc@r@)r2N)r;r<r=rSetrrrrr2rBr2c@r@)r/N)r;r<r=r MutableSetrrrrr/rBr/c@s6eZdZejZefZefZe re ddZ e Z dSdS)r+cCr6)z: The interpreter will supply one. Nrr7rrr__eq__r:zIMapping.__eq__N) r;r<r=rMappingdictrQrrUPY2r r]__ne__rrrrr+s r+c@s eZdZejZeefZefZ dS)r-N) r;r<r=rMutableMappingr_rrQrrUrrrrr-s r-c@r@)r,N)r;r<r=r MappingViewrrrrr,rBr,c@r@)r'N)r;r<r=r ItemsViewrrrrr'rBr'c@r@)r*N)r;r<r=rKeysViewrrrrr*rBr*c@r5)r4cCr6)z Optional method. If not provided, the interpreter will use ``__iter__`` or the old ``__len__`` and ``__getitem__`` protocol to implement ``in``. Nrr7rrrr9r:zIValuesView.__contains__N)r;r<r=r ValuesViewr r9rrrrr4r?r4c@eZdZedeZdS)r! AwaitableNr;r<r=rrMrrrrrr! r!c@rg)r$ CoroutineNrirrrrr$rjr$c@rg)r AsyncIterableNrirrrrrrjrc@rg)r AsyncIteratorNrirrrrr rjr c@rg)rAsyncGeneratorN)r;r<r=rrJrrrrrrrjr)2r __future__rsysrr collections ImportErrorrrrrr zope.interface._compatr r`r rYzope.interface.commonr r version_inforMrJr__all__r#r&r(r)r0r%r3r"r1r.rWr2r/r+r-r,r'r*r4r!r$rr rrrrrst