summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorDaniel Stutzbach <daniel@stutzbachenterprises.com>2010-09-02 15:06:06 (GMT)
committerDaniel Stutzbach <daniel@stutzbachenterprises.com>2010-09-02 15:06:06 (GMT)
commit045b3ba184f78a1ff0ca96561d8b5651c22233c0 (patch)
tree837b1fd156b77afa8cd44904bb1a9ce28be08df2 /Doc
parent928d4eeee8e92ca44899108e297437392102aaa4 (diff)
downloadcpython-045b3ba184f78a1ff0ca96561d8b5651c22233c0.zip
cpython-045b3ba184f78a1ff0ca96561d8b5651c22233c0.tar.gz
cpython-045b3ba184f78a1ff0ca96561d8b5651c22233c0.tar.bz2
Issue #9212: Added the missing isdisjoint method to the dict_keys and
dict_items views. The method is required by the collections.Set ABC, which the views register as supporting.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index a92d7b9..a732fb2 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2216,6 +2216,11 @@ available ("other" refers either to another view or a set):
Return the symmetric difference (all elements either in *dictview* or
*other*, but not in both) of the dictview and the other object as a new set.
+.. method:: dictview.isdisjoint(other)
+
+ Return True if the view has no elements in common with *other*. Sets are
+ disjoint if and only if their intersection is the empty set.
+
An example of dictionary view usage::