On Sat, Aug 29, 2020, 10:30 PM Steven D'Aprano <st...@pearwood.info> wrote:

> I expect that the first will be the most common. If we add a keyword to
> the subscript:
>
>     obj[1, a=3]
>
> I would expect that the it turns into `__getitem__(1, a=3)` which is
> almost surely what the reader and coder expects. It would be quite weird
> for the subscript 1 to turn into a tuple just because I add a keyword.
>

Thank you, and +100. This is the only behavior that makes any sense.
_______________________________________________
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/2HQGOTQLPJNEG3JK4IAC7XNCGVH7WZW7/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to