default behavior

Ethan Furman ethan at stoneleaf.us
Wed Aug 4 03:09:32 CEST 2010


Christian Heimes wrote:
>> Perhaps punctuation will help clarify my intent:
>>
>> __missing__ is *not* part of (dict)s, as shown by dir(dict()):
> 
> Indeed, that's correct. Can we agree, that __missing__ is an optional
> feature of the dict interface, that can be implemented in subclasses of
> dict?

Absolutely.

~Ethan~



More information about the Python-list mailing list