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 py.user
Recipients docs@python, py.user
Date 2013-06-27.05:01:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372309261.95.0.7034101172.issue18313@psf.upfronthosting.co.za>
In-reply-to
Content
http://docs.python.org/3/library/itertools.html#itertools-recipes
"def repeatfunc(func, times=None, *args):"

>>> repeatfunc(lambda x: x, times=None, 1)
  File "<stdin>", line 1
SyntaxError: non-keyword arg after keyword arg
>>>
>>> repeatfunc(lambda x: x, 1, times=None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: repeatfunc() got multiple values for argument 'times'
>>>
History
Date User Action Args
2013-06-27 05:01:01py.usersetrecipients: + py.user, docs@python
2013-06-27 05:01:01py.usersetmessageid: <1372309261.95.0.7034101172.issue18313@psf.upfronthosting.co.za>
2013-06-27 05:01:01py.userlinkissue18313 messages
2013-06-27 05:01:01py.usercreate