On Sat, Sep 26, 2020 at 10:43 PM Ricky Teachey <ri...@teachey.org> wrote:

> ...which, if someone does this arbitrarily against classes that use the
> existing kind of code I gave at the first, will call (if the sentinel is ()
> ):
>
> obj.__setitem__(())
>
> ...which could have all kinds of weird effects rather than giving an
> error, as I think would be better.
>

Sorry correction:

 obj.__setitem__((), "foo")

---
Ricky.

"I've never met a Kentucky man who wasn't either thinking about going home
or actually going home." - Happy Chandler
_______________________________________________
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/NNKPZUHVYXH24FI2KRIFWLL72HRSZAUQ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to