[Python-ideas] should `dict` supply a default `__missing__` implementation?

Stephen J. Turnbull stephen at xemacs.org
Wed Jul 6 06:39:04 EDT 2016

Ethan Furman writes:

 > __missing__, and I'm mystified about the comment that users shouldn't be 
 > subclassing dict.  I thought one of the key advances late in the 2.x 
 > series was easy(er) subclassing of the builtins.

But that's not what was said, it was conditional.  Sometimes you want
to be subclassing dict, sometimes MutableMapping.  But UserDict is
apparently considered to be obsolete.

More information about the Python-ideas mailing list