On 16/04/2020 16:23, oliveira.rodrigo.m@gmail.com wrote:
> I'm opening this thread to discuss and collect feedback on a language change to support keyword arguments to be self-assigned using variables names.
>
> Proposal
> --------
>
> Taking the syntax from [bpo-36817](https://bugs.python.org/issue36817) which just [made it to Python 3.8](https://docs.python.org/3/whatsnew/3.8.html#f-strings-support-for-self-documenting-expressions-and-debugging) the `<keyword name>=` syntax would be valid and have the the same effect as `<keyword name>=<keyword name>`, so these two statements would be equivalent:
>
> ```python
> foo(bar=bar, qux=qux)
> foo(bar=, qux=)
> ```
I wasn't in favour of the original proposal, and that at least had the
excuse of just being for debugging. Imagine how much less I am enthused
by this.
Explicit is better than implicit.
--
Rhodri James *-* Kynesim Ltd
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/RCTOW4XFIUI2TYNIELMTIZG73F5WAUP7/
Code of Conduct: http://python.org/psf/codeofconduct/