Back to index

python3.2  3.2.2
Classes | Functions
test.seq_tests Namespace Reference

Classes

class  Sequence
class  IterFunc
class  IterGen
class  IterNextOnly
class  IterNoNext
class  IterGenExc
class  IterFuncStop
class  CommonTest

Functions

def iterfunc
def itermulti

Detailed Description

Tests common to tuple, list and UserList.UserList

Function Documentation

def test.seq_tests.iterfunc (   seqn)

Definition at line 10 of file seq_tests.py.

00010 
00011 def iterfunc(seqn):
00012     'Regular generator'
00013     for i in seqn:
00014         yield i

Here is the caller graph for this function:

def test.seq_tests.itermulti (   seqn)

Definition at line 83 of file seq_tests.py.

00083 
00084 def itermulti(seqn):
00085     'Test multiple tiers of iterators'
00086     return chain(map(lambda x:x, iterfunc(IterGen(Sequence(seqn)))))

Here is the call graph for this function: