Pre-PEP: Dictionary accumulator methods

Michele Simionato michele.simionato at gmail.com
Sat Mar 19 23:52:27 EST 2005


I am surprised nobody suggested we put those two methods into a
separate module (say dictutils or even UserDict) as functions:

from dictutils import tally, listappend

tally(mydict, key)
listappend(mydict, key, value)

I am -1 about a specific subclass of dict in the standard library, I
would not mind about a few new functions
in an utility module.

                  Michele Simionato




More information about the Python-list mailing list