Friday, December 22, 2006

Repeat @ Python

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

Methods defined here:

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

__iter__(...)
x.__iter__() <==> iter(x)

__len__(...)
x.__len__() <==> len(x)

__repr__(...)
x.__repr__() <==> repr(x)

next(...)
x.next() -> the next value, or raise StopIteration

----------------------------------------------------------------------
Data and other attributes defined here:

__new__ =
T.__new__(S, ...) -> a new object with type S, a subtype of T

No comments: