[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-26 Thread Dong-hee Na


Dong-hee Na  added the comment:

So since no more regression is expected, I would like to propose merging the PR 
and once we need to change the implementation, we can revert Vectorcall 
anytime, Rollbacking Vectorcall will not raise any behavior regression so 
anytime we can rollback it.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-26 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset ac0c6e128cb6553585af096c851c488b53a6c952 by Jelle Zijlstra in 
branch 'main':
bpo-46527: allow calling enumerate(iterable=...) again (GH-30904)
https://github.com/python/cpython/commit/ac0c6e128cb6553585af096c851c488b53a6c952


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Dong-hee Na


Change by Dong-hee Na :


--
priority: normal -> release blocker

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Jelle Zijlstra


Change by Jelle Zijlstra :


--
keywords: +patch
pull_requests: +29082
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30904

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Jelle Zijlstra


Jelle Zijlstra  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Trey Hunner


New submission from Trey Hunner :

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 "", line 1, in 
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 "", line 1, in 
TypeError: enumerate() missing required argument 'iterable'


The help output still shows that iterable is accepted as either a keyword 
argument or a positional argument.

--
components: Library (Lib)
messages: 411695
nosy: trey
priority: normal
severity: normal
status: open
title: enumerate no longer accepts iterable keyword argument
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com