Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_enumerate.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 13 of file test_enumerate.py.


Constructor & Destructor Documentation

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

Definition at line 15 of file test_enumerate.py.

00015 
00016     def __init__(self, seqn):
00017         self.seqn = seqn
        self.i = 0

Here is the caller graph for this function:


Member Function Documentation

Definition at line 18 of file test_enumerate.py.

00018 
00019     def __iter__(self):
        return self

Definition at line 20 of file test_enumerate.py.

00020 
00021     def __next__(self):
00022         if self.i >= len(self.seqn): raise StopIteration
00023         v = self.seqn[self.i]
00024         self.i += 1
00025         return v


Member Data Documentation

Definition at line 17 of file test_enumerate.py.

Definition at line 16 of file test_enumerate.py.


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