[issue45313] Counter.elements() wrong error message

Eric V. Smith report at bugs.python.org
Tue Sep 28 13:53:01 EDT 2021


Eric V. Smith <eric at trueblade.com> added the comment:

When reporting a bug, please give a full example that we can run. I assume aCounter is of type collections.Counter?

Assuming so, the "1 positional argument" is "self". The second argument is the number 1, which is an error. So the error is correct.

----------
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45313>
_______________________________________


More information about the Python-bugs-list mailing list