On Sat, Sep 26, 2020 at 10:43 PM Ricky Teachey <[email protected]> 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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/NNKPZUHVYXH24FI2KRIFWLL72HRSZAUQ/ Code of Conduct: http://python.org/psf/codeofconduct/
