Pre-PEP: Dictionary accumulator methods

Aahz aahz at pythoncraft.com
Sat Mar 19 11:22:07 EST 2005


In article <mVQ_d.9216$u76.1850 at trndny08>,
Raymond Hettinger <python at rcn.com> wrote:
>
>How about countkey() or tabulate()?

Those rank roughly equal to tally() for me, with a slight edge to these
two for clarity and a slight edge to tally() for conciseness.
-- 
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



More information about the Python-list mailing list