On 20.04.20 12:52, Steven D'Aprano wrote:

On Mon, Apr 20, 2020 at 11:15:32AM +0200, Alex Hall wrote:
On Mon, Apr 20, 2020 at 2:48 AM Steven D'Aprano <st...@pearwood.info> wrote:
I have an actual, concrete possible enhancement in mind: relaxing the
restriction on parameter order.

What? Do you think that the current restriction is bad, and we should just
drop it? Why?
No, I have no opinion at the moment on whether we should relax that
restriction. I'm saying that the mode-shift suggestion:

     func(arg, name=value,
          *,  # change to auto-fill mode
          alpha, beta, gamma,
          )

will rule out any further relaxation on that restriction, and that is a
point against it. That's a concrete enhancement that we might allow some
time. Whether *I personally* want that enhancement is irrelevant.

You on the other hand, claim that my suggestion:

     func(arg, name=value,
          **{alpha, beta, gamma},
          )

will also rule out some unspecified, unknown, unimagined future
enhancements. I'm saying that's a weak argument, unless you have a
specific enhancement in mind.

This rules out the possibility to treat sets as mappings from their
elements to `True`. Unlikely, but so are positional arguments following
keyword arguments.
_______________________________________________
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/PJ4WWVMMLCP2UXF5ZP2YQHUEWP7WC76X/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to