bags? 2.5.x?

Arnaud Delobelle arnodel at googlemail.com
Sun Feb 3 04:05:24 EST 2008


On Feb 2, 3:21 pm, MRAB <goo... at mrabarnett.plus.com> wrote:
> I could see uses for both types of union. You could have both A + B
> which adds the multiplicities (the smallest bag which contains both
> the bags) and A | B which takes the max of the multiplicities (the
> smallest bag which contains either of the bags).

I agree, and this is what I proposed in my post (except that I spelt A|
B as A.union(B))

--
Arnaud




More information about the Python-list mailing list