Package Ganga :: Package Utility :: Module util :: Class IList
[hide private]
[frames] | no frames]

Class IList

source code

Proxy class for list objects that enables breaking the elements iteration if the condition flag (sentinel) is set to False during this process All the other operations are delegated to the list object itself #note: the same functionality could be achieved by extending list object #and overriding the __iter__() method but unfortunately this is not exposed in Python2.2 #TODO: review this implementation in a more OO way when min Python version in Ganga is 2.3

Instance Methods [hide private]
 
__init__(self, list, sentinel) source code
 
next(self) source code
 
__myiter__(self) source code
 
__getattr__(self, attrib) source code