]> granicus.if.org Git - python/commitdiff
Document sets' ">" and "<" operations (backport from py3k).
authorGeorg Brandl <georg@python.org>
Sat, 1 Sep 2007 15:49:49 +0000 (15:49 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 1 Sep 2007 15:49:49 +0000 (15:49 +0000)
Doc/library/stdtypes.rst

index 0465706f75a49cafa1adf6afa022a50443af4422..c2c274d198789d576024e17be873c715dbb11fb3 100644 (file)
@@ -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