On Wed, Jan 8, 2020 at 12:02 PM Ethan Furman <ethan@stoneleaf.us> wrote:
I disagree.  My understanding of the purpose behind get() is to get a value
or return the default specified in the get() call, not to create a new key
(which the default __missing__ does).

Right. For comparison, defaultdict.get() doesn't add the key either.

--
--Guido van Rossum (python.org/~guido)