
On 2020-09-27 21:47, David Mertz wrote:
On Sun, Sep 27, 2020 at 10:41 AM Stefano Borini <stefano.borini@gmail.com <mailto:stefano.borini@gmail.com>> wrote:
I kept the tuple as the accepted option, but I am personally open to NoIndex as well. I am not sure how the SC would take a non-hashable, new constant to be honest, for such a specific use case.
My "vote" is for NoIndex. I suggested that new object and name, after all :-).
But I find empty tuple perfectly fine, and would have no objection if that is chosen.
I'd go for something that would have a wider use. Consider, for example, the use-case of a function that has an optional parameter and you want a way to know whether an argument has been provided but None is a valid value that could be passed in. Having a singleton such as Missing would be helpful there. An index/subscript that has no positional component is just a special case of that.