Module itertools :: Class takewhile
[hide private]
[frames] | no frames]

type takewhile

object --+
         |
        takewhile

takewhile(predicate, iterable) --> takewhile object

Return successive entries from an iterable as long as the predicate evaluates to true for each entry.

Instance Methods [hide private]
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__iter__(x)
iter(x)
a new object with type S, a subtype of T
__new__(T, S, ...)
the next value, or raise StopIteration
next(x)
Method Details [hide private]

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__