Message411695
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. |
|
Date |
User |
Action |
Args |
2022-01-26 01:14:56 | trey | set | recipients:
+ trey |
2022-01-26 01:14:56 | trey | set | messageid: <1643159696.56.0.981249049237.issue46527@roundup.psfhosted.org> |
2022-01-26 01:14:56 | trey | link | issue46527 messages |
2022-01-26 01:14:56 | trey | create | |
|