On Tue, Oct 8, 2019 at 12:47 PM Caleb Donovick <[email protected]> wrote:
>
> >  Why not?
>
> What if I want a getitem that only has keyword arguments? I have to take the 
> empty tuple as a positional argument, instead of just ensuring that the key 
> is a dict.
>

But what if you wanted to take both positional AND keyword?You can't
ensure that the key is both a dict and a tuple.

Cleaner to continue passing the tuple exactly as normal.

ChrisA
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/C4FHJREUQ45D3ULPRLXA4KHMOJEBNHRA/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to