summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-11-08 02:52:43 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-11-08 02:52:43 (GMT)
commit1760c8a017ca87dc3b21d383542a23bca4370b34 (patch)
tree8bd8d6076cba0e0135ef83f46467353fcd3a50f2 /Doc
parent004c1c15621eff6bda20c66ce4e5d5c49c90ff25 (diff)
downloadcpython-1760c8a017ca87dc3b21d383542a23bca4370b34.zip
cpython-1760c8a017ca87dc3b21d383542a23bca4370b34.tar.gz
cpython-1760c8a017ca87dc3b21d383542a23bca4370b34.tar.bz2
Add set.isdisjoint()
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index a74758b..f394b23 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1467,6 +1467,13 @@ operations:
Test *x* for non-membership in *s*.
+.. method:: set.isdisjoint(other)
+
+ Return True if the set has no elements in common with *other*.
+ Sets are disjoint if and only if their interesection is the empty set.
+
+ .. versionadded:: 2.6
+
.. method:: set.issubset(other)
set <= other