Ian Kelly ian.g.kelly at
Wed Jan 21 18:27:21 CET 2015

On Wed, Jan 21, 2015 at 9:15 AM, Ian Kelly <ian.g.kelly at> wrote:
> class MultiSet(MutableSet):

In retrospect this probably shouldn't derive from MutableSet, since
that carries the expectation that all elements are unique (much like
how bool shouldn't be subclassed). For instance, collections.Set
includes some operators that aren't compatible with the second operand
being a multiset.

More information about the Python-list mailing list