Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40411> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com