Proposal: s1.intersects(s2)

David Abrahams dave at boost-consulting.com
Thu Jul 5 21:00:53 EDT 2007


on Thu Jul 05 2007, Christoph Zwerschke <cito-AT-online.de> wrote:

> Steven D'Aprano wrote:
>> I'm not a professional set theorist, but in 15-odd years of studying and
>> teaching maths I've never come across mathematicians using intersect as a
>> verb except as informal short-hand. I often say "North Street and South
>> Street don't intersect", but "the intersection of sets A and B is empty".
>
> I think mathematicians use more often the inverse predicate, namely 
> "disjoint", which is well defined as having an empty intersection.

Doesn't read so well as a method, though.  You end up with
"a.is_disjoint_with(b)."

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

The Astoria Seminar ==> http://www.astoriaseminar.com




More information about the Python-list mailing list