Kaydet (Commit) 847cae67 authored tarafından Georg Brandl's avatar Georg Brandl

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

üst 95b571a0
...@@ -1461,11 +1461,21 @@ operations: ...@@ -1461,11 +1461,21 @@ operations:
Test whether every element in the set is in *other*. 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) .. method:: set.issuperset(other)
set >= other set >= other
Test whether every element in *other* is in the set. 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) .. method:: set.union(other)
set | other set | other
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment