summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-09-01 15:49:49 (GMT)
committerGeorg Brandl <georg@python.org>2007-09-01 15:49:49 (GMT)
commit847cae6743aa43aa51efae0d8e6066b84a52b9a9 (patch)
tree0ccf0284c723f022c184c0f0f8b13e31ed7f644b /Doc
parent95b571a084f5e3197c51a91ec6121d830999d5f9 (diff)
downloadcpython-847cae6743aa43aa51efae0d8e6066b84a52b9a9.zip
cpython-847cae6743aa43aa51efae0d8e6066b84a52b9a9.tar.gz
cpython-847cae6743aa43aa51efae0d8e6066b84a52b9a9.tar.bz2
Document sets' ">" and "<" operations (backport from py3k).
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 0465706..c2c274d 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1461,11 +1461,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