ok

Mini Shell

Direktori : /usr/lib64/python3.6/site-packages/zope/interface/common/__pycache__/
Upload File :
Current File : //usr/lib64/python3.6/site-packages/zope/interface/common/__pycache__/sequence.cpython-36.pyc

3

��[��@s�dZdZddlmZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�ZGdd�de�Z	Gdd�dee	�Z
dS)zySequence Interfaces

Importing this module does *not* mark any standard classes
as implementing any of these interfaces.
Zrestructuredtext�)�	Interfacec@seZdZdZdd�ZdS)�IMinimalSequencea�Most basic sequence interface.

    All sequences are iterable.  This requires at least one of the
    following:

    - a `__getitem__()` method that takes a single argument; integer
      values starting at 0 must be supported, and `IndexError` should
      be raised for the first index for which there is no value, or

    - an `__iter__()` method that returns an iterator as defined in
      the Python documentation (http://docs.python.org/lib/typeiter.html).

    cCsdS)z�``x.__getitem__(index) <==> x[index]``

        Declaring this interface does not specify whether `__getitem__`
        supports slice objects.N�)�indexrr� /usr/lib64/python3.6/sequence.py�__getitem__&szIMinimalSequence.__getitem__N)�__name__�
__module__�__qualname__�__doc__rrrrrrs
rc@seZdZdd�ZdS)�IFiniteSequencecCsdS)z``x.__len__() <==> len(x)``Nrrrrr�__len__.szIFiniteSequence.__len__N)rr	r
r
rrrrr,src@sheZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�ZdS)�
IReadSequencez'read interface shared by tuple and listcCsdS)z'``x.__contains__(item) <==> item in x``Nr)�itemrrr�__contains__4szIReadSequence.__contains__cCsdS)z"``x.__lt__(other) <==> x < other``Nr)�otherrrr�__lt__7szIReadSequence.__lt__cCsdS)z#``x.__le__(other) <==> x <= other``Nr)rrrr�__le__:szIReadSequence.__le__cCsdS)z#``x.__eq__(other) <==> x == other``Nr)rrrr�__eq__=szIReadSequence.__eq__cCsdS)z#``x.__ne__(other) <==> x != other``Nr)rrrr�__ne__@szIReadSequence.__ne__cCsdS)z"``x.__gt__(other) <==> x > other``Nr)rrrr�__gt__CszIReadSequence.__gt__cCsdS)z#``x.__ge__(other) <==> x >= other``Nr)rrrr�__ge__FszIReadSequence.__ge__cCsdS)z#``x.__add__(other) <==> x + other``Nr)rrrr�__add__IszIReadSequence.__add__cCsdS)z``x.__mul__(n) <==> x * n``Nr)�nrrr�__mul__LszIReadSequence.__mul__cCsdS)z``x.__rmul__(n) <==> n * x``Nr)rrrr�__rmul__OszIReadSequence.__rmul__cCsdS)z�``x.__getslice__(i, j) <==> x[i:j]``

        Use of negative indices is not supported.

        Deprecated since Python 2.0 but still a part of `UserList`.
        Nr)�i�jrrr�__getslice__RszIReadSequence.__getslice__N)rr	r
rrrrrrrrrrrrrrrrr1src@s eZdZdZdd�Zdd�ZdS)�IExtendedReadSequencezFull read interface for listscCsdS)z%Return number of occurrences of valueNr)rrrr�count]szIExtendedReadSequence.countcGsdS)zTindex(value, [start, [stop]]) -> int

        Return first index of *value*
        Nr)r�argsrrrr`szIExtendedReadSequence.indexN)rr	r
rr rrrrrrZsrc@steZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
ddd�Zdd�Zdd�Z
ddd�Zdd�ZdS)�IUniqueMemberWriteSequencezAThe write contract for a sequence that may enforce unique memberscCsdS)z�``x.__setitem__(index, item) <==> x[index] = item``

        Declaring this interface does not specify whether `__setitem__`
        supports slice objects.
        Nr)rrrrr�__setitem__isz&IUniqueMemberWriteSequence.__setitem__cCsdS)z�``x.__delitem__(index) <==> del x[index]``

        Declaring this interface does not specify whether `__delitem__`
        supports slice objects.
        Nr)rrrr�__delitem__psz&IUniqueMemberWriteSequence.__delitem__cCsdS)z�``x.__setslice__(i, j, other) <==> x[i:j] = other``

        Use of negative indices is not supported.

        Deprecated since Python 2.0 but still a part of `UserList`.
        Nr)rrrrrr�__setslice__wsz'IUniqueMemberWriteSequence.__setslice__cCsdS)z�``x.__delslice__(i, j) <==> del x[i:j]``

        Use of negative indices is not supported.

        Deprecated since Python 2.0 but still a part of `UserList`.
        Nr)rrrrr�__delslice__sz'IUniqueMemberWriteSequence.__delslice__cCsdS)z``x.__iadd__(y) <==> x += y``Nr)�yrrr�__iadd__�sz#IUniqueMemberWriteSequence.__iadd__cCsdS)zAppend item to endNr)rrrr�append�sz!IUniqueMemberWriteSequence.appendcCsdS)zInsert item before indexNr)rrrrr�insert�sz!IUniqueMemberWriteSequence.insert�cCsdS)z.Remove and return item at index (default last)Nr)rrrr�pop�szIUniqueMemberWriteSequence.popcCsdS)z Remove first occurrence of valueNr)rrrr�remove�sz!IUniqueMemberWriteSequence.removecCsdS)zReverse *IN PLACE*Nrrrrr�reverse�sz"IUniqueMemberWriteSequence.reverseNcCsdS)z3Stable sort *IN PLACE*; `cmpfunc(x, y)` -> -1, 0, 1Nr)Zcmpfuncrrr�sort�szIUniqueMemberWriteSequence.sortcCsdS)z3Extend list by appending elements from the iterableNr)�iterablerrr�extend�sz!IUniqueMemberWriteSequence.extend���)r2)N)rr	r
rr#r$r%r&r(r)r*r,r-r.r/r1rrrrr"fs

r"c@seZdZdZdd�ZdS)�IWriteSequencez!Full write contract for sequencescCsdS)z``x.__imul__(n) <==> x *= n``Nr)rrrr�__imul__�szIWriteSequence.__imul__N)rr	r
rr4rrrrr3�sr3c@seZdZdZdS)�	ISequencezFull sequence contractN)rr	r
rrrrrr5�sr5N)rZ
__docformat__Zzope.interfacerrrrrr"r3r5rrrr�<module>s)8

Zerion Mini Shell 1.0