[Python-Dev] Proposal: defaultdict

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
 - Josiah


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /