8 Jan
2020
8 Jan
'20
8:08 p.m.
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) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...>