summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-09-01 15:49:30 (GMT)
committerGeorg Brandl <georg@python.org>2007-09-01 15:49:30 (GMT)
commita6f52786b74c97d22cb136d0a3b7e36bdd2316ab (patch)
tree978c8bc9b0643ecf49fe69f5d80838be7be7d034 /Doc
parentfb5d3675f8f4b6ee2c61131368e0fc3ccdf63d62 (diff)
downloadcpython-a6f52786b74c97d22cb136d0a3b7e36bdd2316ab.zip
cpython-a6f52786b74c97d22cb136d0a3b7e36bdd2316ab.tar.gz
cpython-a6f52786b74c97d22cb136d0a3b7e36bdd2316ab.tar.bz2
Document sets' "<" and ">" operations.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 6a7044f..9ce63d9 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1557,11 +1557,21 @@ operations:
Test whether every element in the set is in *other*.
+.. method:: set < other
+
+ Test whether the set is a true subset of *other*, that is,
+ ``set <= other and set != other``.
+
.. method:: set.issuperset(other)
set >= other
Test whether every element in *other* is in the set.
+.. method:: set > other
+
+ Test whether the set is a true superset of *other*, that is,
+ ``set >= other and set != other``.
+
.. method:: set.union(other)
set | other