[Python-ideas] exclusively1, common, exclusively2 = set1 - set2, set1 & set2, set2 - set1
David Mertz
mertz at gnosis.cx
Sun Jul 7 23:37:56 CEST 2013
On Jul 7, 2013 2:09 PM, "Eric V. Smith" <eric at trueblade.com> wrote:
>
> 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.
I agree.
>
>
> --
> Eric.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130707/b0793cf6/attachment.html>
More information about the Python-ideas
mailing list