]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Build-outs for Counter() class:
authorRaymond Hettinger <python@rcn.com>
Tue, 20 Jan 2009 01:19:26 +0000 (01:19 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 20 Jan 2009 01:19:26 +0000 (01:19 +0000)
commitbad1eb2ff3815909978fd71520980f67fd6501a3
tree57ef913765c930112557be3e2d8cb4a91b4dde07
parente8b619c152b67a1e0926bc50141d92a601dccd46
Build-outs for Counter() class:
* Constructor and update() support keyword args (like their dict counterparts).
* The 'del' statement no longer raises KeyError for missing values.
* Add multiset operations:  __add__, __sub__, __and__, __or__.
Doc/library/collections.rst
Lib/collections.py
Lib/test/test_collections.py