[Python-Dev] Proposal: defaultdict

Josiah Carlson jcarlson at uci.edu
Tue Feb 21 05:44:01 CET 2006

"Adam Olsen" <rhamph at gmail.com> wrote:
> However, I'm beginning to think we shouldn't be comparing them.
> defaultdict is a powerful but heavyweight option, intended for
> complicated behavior.

Check out Guido's patch.  It's not that "heavyweight", and its intended
behavior is to make some operations *more* intuitive, if not a bit
faster in some cases.

Whether or not getorset is introduced, I don't much care, as defaultdict
will cover every use case I've been using setdefault for, as well as
most of my use cases for get.

 - Josiah

More information about the Python-Dev mailing list