That would be a pretty simple change -- the grammar already accepts that, we would just have to disable the separate check that raises "SyntaxError: duplicate argument '_' in function definition" (and only if the name is "_").

On Fri, Jun 11, 2021 at 10:10 AM Steven Troxler <steven.troxler@gmail.com> wrote:
I wonder if it would make sense to allow _ for all positional parameter names.

That would be reasonably consistent with the interpreter (although not with stub/function headers), for example this is legal:
>>> (_, _) = (5, 6)

After a closer look `*args` and `**kwargs` are also nuisance argument names (thanks to Pradeep for pointing this out)
_______________________________________________
Typing-sig mailing list -- typing-sig@python.org
To unsubscribe send an email to typing-sig-leave@python.org
https://mail.python.org/mailman3/lists/typing-sig.python.org/
Member address: guido@python.org


--
--Guido van Rossum (python.org/~guido)
Pronouns: he/him (why is my pronoun here?)