On 25 April 2017 at 22:15, Brice PARENT <cont...@brice.xyz> wrote:
>> Also, I did find the decorator proposal intriguing, though have to say I
>> probably wouldn't bother to use it unless it were a builtin or I had a dozen
>> parameters to deal with.
>>
> If you *need* a shorter solution, even though I'm not entirely sure there's
> a real need for it, it may be easier to get something like this (I think, as
> there is no new operator involved) :

It seems to me that the number of people for whom both of the following hold:

1. Writing out the assignments "longhand" is an unacceptable burden.
2. Using a decorator (which can be written directly in your project,
doesn't even need to be an external dependency) is unacceptable.

is likely to be small enough that it's not a compelling argument for
adding new syntax. Add to that the fact that these people would be
arguing "I want the ability to avoid writing out the assignments, but
I don't want that capability enough to use a decorator" - which hardly
says that a syntax change is vital - and it's difficult to see this
proposal getting accepted.

Paul
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to