On 27/09/20 3:43 pm, Ricky Teachey wrote:
telling people "either provide a default argument for both index AND value in your __setitem__ method, or neither" is also a perfectly legitimate way forward.
Giving the value parameter of a __setitem__ a default seems like a weird thing to do, since under normal circumstances it will never get used. -- Greg _______________________________________________ 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/4KLJSKEZX52KEOFQQWBMDZG4MB2PDSNH/ Code of Conduct: http://python.org/psf/codeofconduct/
