[Python-Dev] Proposal: defaultdict (original) (raw)
Josiah Carlson jcarlson at uci.edu
Tue Feb 21 05:44:01 CET 2006
- Previous message: [Python-Dev] Proposal: defaultdict
- Next message: [Python-Dev] Simple CPython stack overflow.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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
- Previous message: [Python-Dev] Proposal: defaultdict
- Next message: [Python-Dev] Simple CPython stack overflow.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]