diff options
author | Raymond Hettinger <python@rcn.com> | 2007-11-08 02:52:43 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2007-11-08 02:52:43 (GMT) |
commit | 1760c8a017ca87dc3b21d383542a23bca4370b34 (patch) | |
tree | 8bd8d6076cba0e0135ef83f46467353fcd3a50f2 /Doc | |
parent | 004c1c15621eff6bda20c66ce4e5d5c49c90ff25 (diff) | |
download | cpython-1760c8a017ca87dc3b21d383542a23bca4370b34.zip cpython-1760c8a017ca87dc3b21d383542a23bca4370b34.tar.gz cpython-1760c8a017ca87dc3b21d383542a23bca4370b34.tar.bz2 |
Add set.isdisjoint()
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stdtypes.rst | 7 |
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 |