16 Jan
2014
16 Jan
'14
8:25 a.m.
16.01.14 07:55, Larry Hastings написав(ла):
* itertools.repeat deliberately makes it impossible to provide an argument for "times" that behaves the same as not providing the "times" argument, and * there is currently no way to implement this behavior using Argument Clinic. (I'd have to add a hack where impl functions also get args and kwargs.)
/*[clinic input] itertools.times object: object [ times: int ] [clinic start generated code]*/
Are you suggesting that, when converting builtins to Argument Clinic with unrepresentable default values, we're permitted to tweak the defaults to something representable?
I think we need some standard placeholder for unrepresentable default value. May be "..." or "?"?