commit | aaa6e630f8440c7a29621863df35fb4c427e5968 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Jan 13 01:05:03 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Tue Jan 13 01:05:03 2009 +0000 |
tree | e045d175b38bcd478e36de41af3075cfbb6d42e6 | |
parent | a40d57366432cd65915b92fe3e6bfe1d5ad63be0 [diff] |
Simplify Counter() API. Replace items keyword argument with a mapping. Makes Counter() idempotent, makes update() API the same as Counter.__init__(), makes a more readable repr, makes the API more dict-like, and allows Steven Bethard's update() example to work.