[Python-Dev] Proposal: defaultdict

Thomas Heller theller at python.net
Fri Feb 17 21:27:36 CET 2006

Guido van Rossum wrote:
> On 2/17/06, Thomas Heller <theller at python.net> wrote:
>> Ahem, I'm still looking for ways to 'overtake' the dict to implement
>> weird and fancy things.  Can on_missing be overridden in subclasses (writing
>> the subclass in C would not be a problem)?
> Why ahem?
> The answer is yes.

Ok, so that allows to pass the key, for example, to the default_factory -
allowing the case insensitive lookup in namespaces.


More information about the Python-Dev mailing list