[issue19427] enhancement: dictionary maths

2013-10-28 Thread Georg Brandl
Georg Brandl added the comment: This specialized use case has no chance of being added to the very general dict object. But have a look at the collections.Counter class which does exactly what you propose for positive values and the +/- operations. -- nosy: +georg.brandl

[issue19427] enhancement: dictionary maths

2013-10-28 Thread R. David Murray
R. David Murray added the comment: In the meantime the issue should be closed. It can be reopened if consensus is reached. -- nosy: +r.david.murray resolution: -> postponed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue19427] enhancement: dictionary maths

2013-10-28 Thread Eric V. Smith
Eric V. Smith added the comment: I suggest you get consensus on this idea on the python-ideas mailing list first. -- nosy: +eric.smith ___ Python tracker ___

[issue19427] enhancement: dictionary maths

2013-10-28 Thread Richard Neill
New submission from Richard Neill: It would be really nice if python supported mathematical operations on dictionaries. This is widely requested (eg lots of stackoverflow queries), but there's currently no simple way to do it. I propose that this should work in the "obvious" way, i.e. for ever