[Python-Dev] Proposal: defaultdict
Thomas Heller
theller at python.net
Fri Feb 17 21:27:36 CET 2006
More information about the Python-Dev mailing list
Fri Feb 17 21:27:36 CET 2006
- Previous message: [Python-Dev] Proposal: defaultdict
- Next message: [Python-Dev] Serial function call composition syntax foo(x, y) -> bar() -> baz(z)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. Thomas
- Previous message: [Python-Dev] Proposal: defaultdict
- Next message: [Python-Dev] Serial function call composition syntax foo(x, y) -> bar() -> baz(z)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list