[issue46527] enumerate no longer accepts iterable keyword argument

Jelle Zijlstra report at bugs.python.org
Tue Jan 25 22:18:41 EST 2022


Jelle Zijlstra <jelle.zijlstra at gmail.com> added the comment:

I can confirm that the behavior changed between 3.10 and current main: enumerate(iterable=[]) works on 3.10 but not on main. It's likely a consequence of bpo-43706.

I'll submit a patch to restore the previous behavior.

----------
nosy: +Jelle Zijlstra, corona10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46527>
_______________________________________


More information about the Python-bugs-list mailing list