Here's a similar thread:

https://mail.python.org/archives/list/python-ideas@python.org/thread/SQKZ273MYAY5WNIQRGEDLYTKVORVKNEZ/#LXMU22F63VPCF7CMQ4OQRH2CG6H7WCQ6

Personally I write code like this all the time and would love this feature,
but I can see how it would be a mess for beginners to learn.

On Thu, Apr 16, 2020 at 6:36 PM Christopher Barker <python...@gmail.com>
wrote:

> This (or something really similar) has been brought up recently on this
> list.
>
> Please go look for that, and see how it was resolved at the time.
>
> But for now: -1 -- this is not THAT common a pattern, and to the extent
> that it is, this would encourage people to over-use it, and lead to errors.
>
> I find that newbies are already confused enough about scope, and why the
> "x" in one place is not the same as the "x" in another. This would just
> blur that line even more.
>
> -CHB
>
>
> On Thu, Apr 16, 2020 at 8:49 AM Rhodri James <rho...@kynesim.co.uk> wrote:
>
>> On 16/04/2020 16:23, oliveira.rodrig...@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-le...@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/
>>
>
>
> --
> Christopher Barker, PhD
>
> Python Language Consulting
>   - Teaching
>   - Scientific Software Development
>   - Desktop GUI and Web Development
>   - wxPython, numpy, scipy, Cython
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@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/Y3V57V7SPD7OJO4KV5OH2Q3XWRSYOY3V/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@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/755DELLDS2L4HLFW2TVJQUXYKWTMWCIO/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to