On Fri, Apr 10, 2020 at 06:02:25PM -0700, Andrew Barnert via Python-ideas wrote:

> (Keep in mind that defaultdict 
> was added somewhere around 2.4 or 2.5, while __missing__ has only been 
> there since somewhere around 2.7/3.3. I’ll bet it would be different 
> if it were invented today.)


Both `__missing__` and `defaultdict` were added in version 2.5.

https://docs.python.org/2/library/stdtypes.html#dict
https://docs.python.org/2/library/collections.html#defaultdict-objects


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

Reply via email to