
On Sun, 27 Sep 2020 at 05:06, Ricky Teachey <ricky@teachey.org> wrote:
obj[**d] = "foo" # no kwd arguments provided here
I committed yesterday the following proposal https://github.com/python/peps/pull/1622 But to be honest I am not sure if we should disallow these two constructs d[*()] d[**{}] as equivalent to the disallowed d[] or allow them as equivalent to d[()] (or whatever the sentinel will be)
PS. Maybe we can just stop debating this PEP? I have a feeling that we're going around in circles. I think Stefano has some changes that he would like to see vetted, but the best way to signal an empty index is not one of them.
I am not sure. I am on the fence on many topics. There seem to be no clear solution on many of them, it boils down to taste and compromise. In any case, I listen to all proposals (although with a small delay). I am working on the sentinel issue at the moment https://github.com/python/peps/compare/master...stefanoborini:pep-637-on-def... -- Kind regards, Stefano Borini