On Wed, Aug 26, 2020 at 11:06:26AM -0400, Ricky Teachey wrote:

> Well I did give a couple examples: language supported opt-in for
> pep-472-ification, and pep-472 opt-out. But Ok, more are needed.

That's one example, not a couple: the ability to choose whether to 
opt-in or opt-out of keyword subscripts.

Except you can't really. Either the interpreter allows keyword syntax in 
subscripts, or it doesn't. You can't opt-in if the interpreter doesn't 
support it, and if the interpreter does support it, you can't prevent it 
from being supported.

Of course you can choose whether to use keywords in your own classes, 
but we can already do that the same way we opt out of any other feature: 
just don't use it!

(I expect that the built-ins list, tuple, dict, str etc will all do 
exactly that.)


-- 
Steve
_______________________________________________
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/Y3FA7XFB5GODINBAC6UVWGQKXYHO3OJ5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to