8 Oct
2019
8 Oct
'19
4:12 a.m.
On Tue, Oct 8, 2019 at 12:47 PM Caleb Donovick <donovick@cs.stanford.edu> 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