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

type repeat

object --+
         |
        repeat

repeat(element [,times]) -> create an iterator which returns the element for the specified number of times. If not specified, returns the element endlessly.

Instance Methods [hide private]
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__iter__(x)
iter(x)
 
__length_hint__(...)
Private method returning an estimate of len(list(it)).
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__repr__(x)
repr(x)
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__

__repr__(x)
(Representation operator)

 

repr(x)

Overrides: object.__repr__