mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Document sets' "<" and ">" operations.
This commit is contained in:
parent
fb5d3675f8
commit
a6f52786b7
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue