On Thu, Aug 27, 2020, 7:31 PM Joseph Martinot-Lagarde <contreba...@gmail.com>
wrote:

> As for foo[a=1, b=2], I'd propose to keep it a SyntaxError for now, and
> always require an index. This way it can be changed later when people are
> more used to the keyword args and have more ideas of what would be good as
> a default argument. In the face of ambiguity, refuse the temptation to
> guess ;)
>

> Joseph
>

That last would eliminate one of the probably most important uses of the
new functionality, in my opinion, which would be a type hint shortcut that
looks like this:

Vector = dict[i=str, j=str]
Kwargs = dict[name=str, value=Any]
_______________________________________________
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/QM642Y6QDGIIMBMCMAAGAKS3O6H6BMNY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to