Trees

Ian Kelly ian.g.kelly at gmail.com
Wed Jan 21 12:27:21 EST 2015


On Wed, Jan 21, 2015 at 9:15 AM, Ian Kelly <ian.g.kelly at gmail.com> 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