HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/zope/interface/common/__pycache__/sequence.cpython-38.pyc
U

ؒ�]��@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/lib/python3/dist-packages/zope/interface/common/sequence.py�__getitem__&szIMinimalSequence.__getitem__N)�__name__�
__module__�__qualname__�__doc__rrrrrrsrc@seZdZdd�ZdS)�IFiniteSequencecCsdS)z``x.__len__() <==> len(x)``Nrrrrr�__len__.szIFiniteSequence.__len__N)r	r
rrrrrrr
,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``Nrrrrr�__le__:szIReadSequence.__le__cCsdS)z#``x.__eq__(other) <==> x == other``Nrrrrr�__eq__=szIReadSequence.__eq__cCsdS)z#``x.__ne__(other) <==> x != other``Nrrrrr�__ne__@szIReadSequence.__ne__cCsdS)z"``x.__gt__(other) <==> x > other``Nrrrrr�__gt__CszIReadSequence.__gt__cCsdS)z#``x.__ge__(other) <==> x >= other``Nrrrrr�__ge__FszIReadSequence.__ge__cCsdS)z#``x.__add__(other) <==> x + other``Nrrrrr�__add__IszIReadSequence.__add__cCsdS)z``x.__mul__(n) <==> x * n``Nr��nrrr�__mul__LszIReadSequence.__mul__cCsdS)z``x.__rmul__(n) <==> n * x``Nrrrrr�__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)r	r
rrrrrrrrrrrrr#rrrrr1src@s eZdZdZdd�Zdd�ZdS)�IExtendedReadSequencezFull read interface for listscCsdS)z%Return number of occurrences of valueNrrrrr�count]szIExtendedReadSequence.countcGsdS)zTindex(value, [start, [stop]]) -> int

        Return first index of *value*
        Nr)r�argsrrrr`szIExtendedReadSequence.indexN)r	r
rrr%rrrrrr$Zsr$c@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.
        Nrrrrr�__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)r!r"rrrr�__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`.
        Nrr rrr�__delslice__sz'IUniqueMemberWriteSequence.__delslice__cCsdS)z``x.__iadd__(y) <==> x += y``Nr)�yrrr�__iadd__�sz#IUniqueMemberWriteSequence.__iadd__cCsdS)zAppend item to endNrrrrr�append�sz!IUniqueMemberWriteSequence.appendcCsdS)zInsert item before indexNrr(rrr�insert�sz!IUniqueMemberWriteSequence.insert���cCsdS)z.Remove and return item at index (default last)Nrrrrr�pop�szIUniqueMemberWriteSequence.popcCsdS)z Remove first occurrence of valueNrrrrr�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)r1)N)r	r
rrr)r*r+r,r.r/r0r2r3r4r5r7rrrrr'fs

r'c@seZdZdZdd�ZdS)�IWriteSequencez!Full write contract for sequencescCsdS)z``x.__imul__(n) <==> x *= n``Nrrrrr�__imul__�szIWriteSequence.__imul__N)r	r
rrr9rrrrr8�sr8c@seZdZdZdS)�	ISequencezFull sequence contractN)r	r
rrrrrrr:�sr:N)rZ
__docformat__Zzope.interfacerrr
rr$r'r8r:rrrr�<module>s)8