Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.seq_tests.IterFunc Class Reference

List of all members.

Public Member Functions

def __init__
def __iter__
def __next__

Public Attributes

 seqn
 i

Detailed Description

Definition at line 22 of file seq_tests.py.


Constructor & Destructor Documentation

def test.seq_tests.IterFunc.__init__ (   self,
  seqn 
)

Definition at line 24 of file seq_tests.py.

00024 
00025     def __init__(self, seqn):
00026         self.seqn = seqn
        self.i = 0

Here is the caller graph for this function:


Member Function Documentation

Definition at line 27 of file seq_tests.py.

00027 
00028     def __iter__(self):
        return self

Definition at line 29 of file seq_tests.py.

00029 
00030     def __next__(self):
00031         if self.i >= len(self.seqn): raise StopIteration
00032         v = self.seqn[self.i]
00033         self.i += 1
00034         return v


Member Data Documentation

Definition at line 26 of file seq_tests.py.

Definition at line 25 of file seq_tests.py.


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