Document sets' ">" and "<" operations (backport from py3k).

This commit is contained in:
Georg Brandl 2007-09-01 15:49:49 +00:00
parent 95b571a084
commit 847cae6743
1 changed files with 10 additions and 0 deletions

View 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