On 1/15/2014 9:25 PM, Vajrasky Kok wrote:
Dear friends,
from itertools import repeat
list(repeat('a', 3))
['a', 'a', 'a']
list(repeat('a', 0))
[]
repeat.__doc__
'repeat(object [,times]) -> create an iterator which returns the
object\nfor the specified number of times. If not specified, re
Dear friends,
>>> from itertools import repeat
>>> list(repeat('a', 3))
['a', 'a', 'a']
>>> list(repeat('a', 0))
[]
>>> repeat.__doc__
'repeat(object [,times]) -> create an iterator which returns the
object\nfor the specified number of times. If not specified, returns
the object\nendlessly.'
If