Re: [Python-Dev] Signature of function with default value uncapturable in Python and C

2014-01-15 Thread Terry Reedy
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

[Python-Dev] Signature of function with default value uncapturable in Python and C

2014-01-15 Thread Vajrasky Kok
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