This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients aeros, phr, rhettinger
Date 2020-04-28.02:17:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588040258.44.0.549099885292.issue40411@roundup.psfhosted.org>
In-reply-to
Content
Do you want to freeze a counter to prevent future count changes or bto make it to be hashable?  Essentially the only reason we have frozenset is to use sets as dict keys to model graphs, but that wouldn't make much sense for counters.

What multiset methods do you need? We already have addition, subtraction, union, and intersection.  A symmetric_difference doesn't seem to make sense or have a use case.   AFAICT, all that is missing are subset/superset tests which were omitted because their semantics conflict with the existing dict equality semantics and because the use cases are rare.
History
Date User Action Args
2020-04-28 02:17:38rhettingersetrecipients: + rhettinger, phr, aeros
2020-04-28 02:17:38rhettingersetmessageid: <1588040258.44.0.549099885292.issue40411@roundup.psfhosted.org>
2020-04-28 02:17:38rhettingerlinkissue40411 messages
2020-04-28 02:17:37rhettingercreate