On 16/08/20 11:49 am, Guido van Rossum wrote:
    SEMANTICS OF NO ARGUMENTS
    I can see two basic ways of allowing no arguments. One is for the
    interpreter to construct an object that is the argument passed to
    __getitem__ and so forth. The other is to not pass an argument at
    all. I see this as a secondary question.

If d[] were to be allowed, I would expect it to pass an empty
tuple as the index, since it's the limiting case of reducing the
number of positional indices.

--
Greg
_______________________________________________
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/FTVKPIY456KK3E2AA6B6BCKYGUMD53WP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to