Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_itertools.I Class Reference

List of all members.

Public Member Functions

def __init__
def __iter__
def __next__

Public Attributes

 seqn
 i

Detailed Description

Definition at line 1154 of file test_itertools.py.


Constructor & Destructor Documentation

def test.test_itertools.I.__init__ (   self,
  seqn 
)

Definition at line 1156 of file test_itertools.py.

01156 
01157     def __init__(self, seqn):
01158         self.seqn = seqn
        self.i = 0

Here is the caller graph for this function:


Member Function Documentation

Definition at line 1159 of file test_itertools.py.

01159 
01160     def __iter__(self):
        return self

Definition at line 1161 of file test_itertools.py.

01161 
01162     def __next__(self):
01163         if self.i >= len(self.seqn): raise StopIteration
01164         v = self.seqn[self.i]
01165         self.i += 1
01166         return v


Member Data Documentation

Definition at line 1158 of file test_itertools.py.

Definition at line 1157 of file test_itertools.py.


The documentation for this class was generated from the following file: