[Python-Dev] Proposal: defaultdict (original) (raw)

Josiah Carlson jcarlson at uci.edu
Mon Feb 20 21:24:18 CET 2006


"Adam Olsen" <rhamph at gmail.com> wrote:

Can you say, for the record (since nobody else seems to care), if d.getorset(key, func) would work in your use cases?

It doesn't work for the multiset/accumulation case:

dd[key] += 1


More information about the Python-Dev mailing list