diff options
author | Georg Brandl <georg@python.org> | 2007-09-01 15:49:30 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-01 15:49:30 (GMT) |
commit | a6f52786b74c97d22cb136d0a3b7e36bdd2316ab (patch) | |
tree | 978c8bc9b0643ecf49fe69f5d80838be7be7d034 | |
parent | fb5d3675f8f4b6ee2c61131368e0fc3ccdf63d62 (diff) | |
download | cpython-a6f52786b74c97d22cb136d0a3b7e36bdd2316ab.zip cpython-a6f52786b74c97d22cb136d0a3b7e36bdd2316ab.tar.gz cpython-a6f52786b74c97d22cb136d0a3b7e36bdd2316ab.tar.bz2 |
Document sets' "<" and ">" operations.
-rw-r--r-- | Doc/library/stdtypes.rst | 10 |
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 |