From: Georg Brandl Date: Sat, 1 Sep 2007 15:49:30 +0000 (+0000) Subject: Document sets' "<" and ">" operations. X-Git-Tag: v3.0a2~484 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6f52786b74c97d22cb136d0a3b7e36bdd2316ab;p=thirdparty%2FPython%2Fcpython.git Document sets' "<" and ">" operations. --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 6a7044f82b93..9ce63d9b7ebb 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