This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients docs@python, eric.smith, ezio.melotti, py.user, rhettinger
Date 2013-08-08.13:10:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375967424.09.0.324102241428.issue18313@psf.upfronthosting.co.za>
In-reply-to
Content
> 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).
History
Date User Action Args
2013-08-08 13:10:24ezio.melottisetrecipients: + ezio.melotti, rhettinger, eric.smith, docs@python, py.user
2013-08-08 13:10:24ezio.melottisetmessageid: <1375967424.09.0.324102241428.issue18313@psf.upfronthosting.co.za>
2013-08-08 13:10:24ezio.melottilinkissue18313 messages
2013-08-08 13:10:23ezio.melotticreate