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

index 6a7044f82b93296267c6bd7f9a2e962b843d19af..9ce63d9b7ebb8695e40233efb607945a99305389 100644 (file)
@@ -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