Hi, while writing a simple code, I found a potential bug from Counter class.
As written in abstract, pypy returns False for Counter(a=4, b=2, c=0) == Counter(a=4, b=2),
while Python3 returns True for the same.
Considering the characteristics of the Counter class, returning True to the upper statement seems to be more reasonable. Maybe pypy should add __eq__ statement too.
Abstract: pypy returns
False
forHi, while writing a simple code, I found a potential bug from Counter class. As written in abstract, pypy returns
False
forCounter(a=4, b=2, c=0) == Counter(a=4, b=2)
, while Python3 returns True for the same.The reason seems to be the absence of __eq method in pypy's Counter class, while cpython's Counter class [has](https://github.com/python/cpython/blob/a6675b1a597c67be972598ac8562883fabe48099/Lib/collections/init__.py#L784).
Considering the characteristics of the Counter class, returning
True
to the upper statement seems to be more reasonable. Maybe pypy should add __eq__ statement too.