From: Georg Brandl Date: Sat, 1 Sep 2007 15:49:49 +0000 (+0000) Subject: Document sets' ">" and "<" operations (backport from py3k). X-Git-Tag: v2.6a1~1363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=847cae6743aa43aa51efae0d8e6066b84a52b9a9;p=python Document sets' ">" and "<" operations (backport from py3k). --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 0465706f75..c2c274d198 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