Pre-PEP: Dictionary accumulator methods
Aahz
aahz at pythoncraft.com
Sun Mar 20 16:05:22 EST 2005
More information about the Python-list mailing list
Sun Mar 20 16:05:22 EST 2005
- Previous message (by thread): Pre-PEP: Dictionary accumulator methods
- Next message (by thread): Pre-PEP: Dictionary accumulator methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <1111294347.682560.242840 at f14g2000cwb.googlegroups.com>, Michele Simionato <michele.simionato at gmail.com> wrote: > >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) That seems like a reasonable compromise. -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "The joy of coding Python should be in seeing short, concise, readable classes that express a lot of action in a small amount of clear code -- not in reams of trivial code that bores the reader to death." --GvR
- Previous message (by thread): Pre-PEP: Dictionary accumulator methods
- Next message (by thread): Pre-PEP: Dictionary accumulator methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list