default behavior

Ethan Furman ethan at stoneleaf.us
Tue Aug 3 21:09:32 EDT 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