[Python-Dev] Py2.6 buildouts to the set API (original) (raw)
Raymond Hettinger python at rcn.com
Sun May 20 00:17:00 CEST 2007
- Previous message: [Python-Dev] Py2.6 buildouts to the set API
- Next message: [Python-Dev] Py2.6 buildouts to the set API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
* 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
- Previous message: [Python-Dev] Py2.6 buildouts to the set API
- Next message: [Python-Dev] Py2.6 buildouts to the set API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]