On 2020-09-27 21:47, David Mertz wrote:
On Sun, Sep 27, 2020 at 10:41 AM Stefano Borini
<stefano.bor...@gmail.com <mailto:stefano.bor...@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.
_______________________________________________
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/745LFROIFLPDJ3K46LMV45JKOJODHOH4/
Code of Conduct: http://python.org/psf/codeofconduct/