[Python-ideas] exclusively1, common, exclusively2 = set1 - set2, set1 & set2, set2 - set1

Paddy3118 paddy3118 at gmail.com
Fri Jul 5 09:09:17 CEST 2013



On Friday, 5 July 2013 07:19:24 UTC+1, Greg Ewing wrote:
>
> Oscar Benjamin wrote: 
> > On 4 July 2013 03:10, Steven D'Aprano <st... at pearwood.info <javascript:>> 
> wrote: 
>  > 
> >>Does any other language with sets offer this as a set primitive? 
> > 
> > I'd be interested to know what they call it if they do. 
>
> I think it should be called vennerate(). 
>

Vennerate?
Cute; but we have str1.partition(str2), and set1.partition(set2) would be 
mathematical partition of the union of both sets returning a tuple of three 
elements - just like str.partition, which makes me vote for the name 
"partition".

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130705/73e77d13/attachment.html>


More information about the Python-ideas mailing list