On 2020-04-16 11:43 a.m., Steven D'Aprano wrote:
On Thu, Apr 16, 2020 at 11:17:33AM -0300, Soni L. wrote:
> what about a dict.setdefaults (note the s)
Do you have any idea of how much confusion and many silent errors will
be caused by having methods setdefault and setdefaults on the same
class?



we can't break setdefault (particularly for tuple keys), do you have a better idea?
_______________________________________________
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/W6VMX375Z7CCAI64W2F3WZZBJ7HP4472/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to