[New-bugs-announce] [issue14182] collections.Counter equality test thrown-off by zero counts

Raymond Hettinger report at bugs.python.org
Sat Mar 3 11:10:04 CET 2012


New submission from Raymond Hettinger <raymond.hettinger at gmail.com>:

>>> from collections import Counter
>>> x=Counter(a=10,b=0,c=3)
>>> y=Counter(a=10,c=3)
>>> x == y
False
>>> all(x[k]==y[k] for k in set(x) | set(y))
True

----------
assignee: rhettinger
components: Library (Lib)
messages: 154827
nosy: rhettinger
priority: normal
severity: normal
status: open
title: collections.Counter equality test thrown-off by zero counts
type: behavior
versions: Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14182>
_______________________________________


More information about the New-bugs-announce mailing list