Pre-PEP: Dictionary accumulator methods

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Sat Mar 19 09:49:16 EST 2005


Peter Hansen wrote:
> Michele Simionato wrote:
>> +1 for inc instead of count.
> 
> -1 for inc, increment, or anything that carries a
> connotation of *increasing* the value, so long as
> the proposal allows for negative numbers to be
> involved.  "Incrementing by -1" is a pretty silly
> picture.
> 
> +1 for add and, given the above, I'm unsure there's
> a viable alternative (unless this is restricted to
> positive values, or perhaps even to "+1" specifically).

What about `addto()'? add() just has the connotation of adding something
to the dict and not to an item in it.

Reinhold



More information about the Python-list mailing list