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

Class groupby

object --+
         |
        groupby

groupby(iterable[, keyfunc]) -> create an iterator which returns (key, sub-iterator) grouped by each value of key(value).

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)

Inherited from object: __delattr__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

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__