TJJc@sdZdZddklZdeifdYZdefdYZdefd YZd efd YZd eifd YZ de fdYZ dee fdYZ dS(sJSequence Interfaces $Id: sequence.py 71145 2006-11-16 19:37:42Z fdrake $ trestructuredtexti(t interfacetIMinimalSequencecBseZdZdZRS(sMost basic sequence interface. All sequences are iterable. This requires at least one of the following: - a `__getitem__()` method that takes a single argument; interger 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(s`x.__getitem__(index)` <==> `x[index]` Declaring this interface does not specify whether `__getitem__` supports slice objects.N((tindex((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt __getitem__$s(t__name__t __module__t__doc__R(((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyRs tIFiniteSequencecBseZdZRS(cCsdS(s`x.__len__()` <==> `len(x)`N((((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__len__,s(RRR (((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyR*st IReadSequencecBsqeZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z RS( s'read interface shared by tuple and listcCsdS(s'`x.__contains__(item)` <==> `item in x`N((titem((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt __contains__2scCsdS(s"`x.__lt__(other)` <==> `x < other`N((tother((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__lt__5scCsdS(s#`x.__le__(other)` <==> `x <= other`N((R ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__le__8scCsdS(s#`x.__eq__(other)` <==> `x == other`N((R ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__eq__;scCsdS(s#`x.__ne__(other)` <==> `x != other`N((R ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__ne__>scCsdS(s"`x.__gt__(other)` <==> `x > other`N((R ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__gt__AscCsdS(s#`x.__ge__(other)` <==> `x >= other`N((R ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__ge__DscCsdS(s#`x.__add__(other)` <==> `x + other`N((R ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__add__GscCsdS(s`x.__mul__(n)` <==> `x * n`N((tn((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__mul__JscCsdS(s`x.__rmul__(n)` <==> `n * x`N((R((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__rmul__MscCsdS(s`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`. N((titj((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt __getslice__Ps(RRRR RRRRRRRRRR(((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyR /s          tIExtendedReadSequencecBs eZdZdZdZRS(sFull read interface for listscCsdS(s%Return number of occurrences of valueN((R ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pytcount[scGsdS(sQReturn first index of value `L.index(value, [start, [stop]])` -> integerN((R targs((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyR^s(RRRRR(((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyRXs tIUniqueMemberWriteSequencecBseZdZdZdZdZdZdZdZdZ dd Z d Z d Z dd Zd ZRS(sAThe write contract for a sequence that may enforce unique memberscCsdS(s`x.__setitem__(index, item)` <==> `x[index] = item` Declaring this interface does not specify whether `__setitem__` supports slice objects. N((RR ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt __setitem__fscCsdS(s`x.__delitem__(index)` <==> `del x[index]` Declaring this interface does not specify whether `__delitem__` supports slice objects. N((R((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt __delitem__mscCsdS(s`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`. N((RRR ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt __setslice__tscCsdS(s`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`. N((RR((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt __delslice__|scCsdS(s`x.__iadd__(y)` <==> `x += y`N((ty((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__iadd__scCsdS(sAppend item to endN((R ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pytappendscCsdS(sInsert item before indexN((RR ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pytinsertsicCsdS(s.Remove and return item at index (default last)N((R((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pytpopscCsdS(s Remove first occurrence of valueN((R ((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pytremovescCsdS(sReverse *IN PLACE*N((((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pytreversescCsdS(s3Stable sort *IN PLACE*; `cmpfunc(x, y)` -> -1, 0, 1N((tcmpfunc((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pytsortscCsdS(s3Extend list by appending elements from the iterableN((titerable((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pytextendsN(RRRRR R!R"R$R%R&R'R(R)tNoneR+R-(((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyRcs           tIWriteSequencecBseZdZdZRS(s!Full write contract for sequencescCsdS(s`x.__imul__(n)` <==> `x *= n`N((R((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyt__imul__s(RRRR0(((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyR/st ISequencecBseZdZRS(sFull sequence contract(RRR(((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyR1sN( Rt __docformat__tzopeRt InterfaceRRR RRR/R1(((sD/usr/lib64/python2.6/site-packages/zope/interface/common/sequence.pyts) 8