On 29/08/20 2:07 pm, Steven D'Aprano wrote:
Better would be to add a new future directive to change the parsing of
subscripts, and allow people to opt-in when they are ready on a
per-module basis.

     from __future__ import subscript_arguments

I don't think that would help, at least not on its own. The style
of subscript argument passing required depends on the object being
indexed, not the module it's being done from.

There could be a future import that just makes a[1,] mean a[1]
instead of a[(1,)], but how useful would that really be? How often
have you wanted to put a trailing comma on your indexes and have
it do nothing?

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

Reply via email to