[Python-ideas] Implement __add__ for set and frozenset

Raymond Hettinger python at rcn.com
Tue Jun 3 20:44:33 CEST 2008


 > Difference is not an associative operation though. E.g.

A.difference(B, C, D)  means A - B - C - D
which can be (((A - B) - C) - D)
or (((A - D) - C) - B)
or (((A - C) - B) - D)
or (((A - C) - D) - B)

You can do the subtractions from A in any order.


Raymond



More information about the Python-ideas mailing list