[issue40411] frozen collection.Counter

paul rubin report at bugs.python.org
Tue Apr 28 01:29:52 EDT 2020


paul rubin <phr-pythonbugs at nightsong.com> added the comment:

Yeah I think the basic answer to this ticket is "Python doesn't really have multisets and a proposal to add them should go somewhere else".  Fair enough-- consider the request withdrawn from here.

Regarding minimalism vs completeness, regarding some feature X (say X is multisets), it's reasonable per minimalism to decide not to have X.  But if on weighing the use cases you decide to have X after all, I think it's best to implement X properly and completely with all the edge cases handled, rather than implement a half-baked subset.  That was something Java was historically very good at and Python wasn't.  I guess that is one for the theorists though.  Thanks everyone.

----------

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


More information about the Python-bugs-list mailing list