Ezio Melotti added the comment: > it should be: "def repeatfunc(func, times, *args):" > and None for times described in the docstring
This would require you to provide at least two elements, whereas now it's possible to pass just the function (e.g. repeatfunc(random.random)). The problem with the current signature is that you are "forced" to specify the "times" (positionally) whenever you want to pass args to the function -- even if you want an endless repetition (i.e. times=None). ---------- nosy: +ezio.melotti _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18313> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com