[Python-Dev] Py2.6 buildouts to the set API

Raymond Hettinger python at rcn.com
Sun May 20 00:17:00 CEST 2007


>> * New method (proposed by Shane Holloway):  s1.isdisjoint(s2).
>> Logically equivalent to "not s1.intersection(s2)" but has an
>> early-out if a common member is found.  

[MvL]
> I'd rather see iterator versions of the set operations. 

Interesting idea.  I'm not sure I see how to make it work.
If s|t returned an iterator, then how would s|t|u work?
Are you proposing lazy evaluation of unions, intersections,
and differences?


Raymond


More information about the Python-Dev mailing list