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 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19427> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com