[Python-ideas] exclusively1, common, exclusively2 = set1 - set2, set1 & set2, set2 - set1
Eric V. Smith
eric at trueblade.com
Sun Jul 7 23:07:50 CEST 2013
On 7/7/2013 1:45 AM, David Mertz wrote:
> Maybe the generalization isn't worthwhile. I was thinking that maybe a
> more general version should keep order in types that have order to start
> with, so I confess I'm not certain what the "correct" interface would be.
>
> But even if it were only for sets, I like the idea of a plain function
> much better than a method of a set, even if the only arguments it
> accepted were sets.
If it were added, I think a classmember on set would be reasonable.
--
Eric.
More information about the Python-ideas
mailing list