From 847cae6743aa43aa51efae0d8e6066b84a52b9a9 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 1 Sep 2007 15:49:49 +0000 Subject: Document sets' ">" and "<" operations (backport from py3k). --- Doc/library/stdtypes.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v0.12