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 trey
Recipients trey
Date 2022-01-26.01:14:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643159696.56.0.981249049237.issue46527@roundup.psfhosted.org>
In-reply-to
Content
While playing around with the main CPython branch against I noticed that enumerate now gives a strange error message when `iterable` is provided as a keyword argument:

>>> enumerate(iterable=[])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: enumerate() missing required argument 'iterable'

When passing an invalid keyword argument (and no positional arguments) an interesting error message is also given:

>>> enumerate(hello="world")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: enumerate() missing required argument 'iterable'


The help output still shows that iterable is accepted as either a keyword argument or a positional argument.
History
Date User Action Args
2022-01-26 01:14:56treysetrecipients: + trey
2022-01-26 01:14:56treysetmessageid: <1643159696.56.0.981249049237.issue46527@roundup.psfhosted.org>
2022-01-26 01:14:56treylinkissue46527 messages
2022-01-26 01:14:56treycreate