| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/zope/interface/common/ |
Upload File : |
Kc @ s d Z d Z d d l m Z d e j f d YZ d e f d YZ d e f d YZ d
e f d YZ d e j f d
YZ d e f d YZ
d e e
f d YZ d S( sL Sequence Interfaces
$Id: sequence.py 110536 2010-04-06 02:59:44Z tseaver $
t restructuredtexti( t interfacet IMinimalSequencec B s e Z d Z d Z RS( s Most 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).
c C s d S( s `x.__getitem__(index)` <==> `x[index]`
Declaring this interface does not specify whether `__getitem__`
supports slice objects.N( ( t index( ( sB /usr/lib/python2.7/dist-packages/zope/interface/common/sequence.pyt __getitem__$ s ( t __name__t
__module__t __doc__R ( ( ( sB /usr/lib/python2.7/dist-packages/zope/interface/common/sequence.pyR s
t IFiniteSequencec B s e Z d Z RS( c C s d S( s `x.__len__()` <==> `len(x)`N( ( ( ( sB /usr/lib/python2.7/dist-packages/zope/interface/common/sequence.pyt __len__, s ( R R R ( ( ( sB /usr/lib/python2.7/dist-packages/zope/interface/common/sequence.pyR * s t
IReadSequencec B sq e Z d Z 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 interface shared by tuple and listc C s d S( s' `x.__contains__(item)` <==> `item in x`N( ( t item( ( sB /usr/lib/python2.7/dist-packages/zope/interface/common/sequence.pyt __contains__2 s c C s d S( s"