mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Removed < <= > >= from the API. Implemented as comparisons of the
underlying dictionaries, there were no reasonable use cases (lexicographic sorting of a list of sets is somewhat esoteric). Frees the operators for other uses (such as strict subset and superset comparisons). Updated documentation and test suite accordingly.
This commit is contained in:
parent
bf935fde15
commit
e87ab3fefe
3 changed files with 5 additions and 23 deletions
|
@ -100,9 +100,8 @@ the following operations:
|
|||
\end{tableii}
|
||||
|
||||
In addition to the above operations, both \class{Set} and \class{ImmutableSet}
|
||||
support set to set comparison operators based on the contents of their
|
||||
internal dictionaries. Two sets are equal if and only if every element of
|
||||
each set is contained in the other.
|
||||
support set to set equality comparisons. Two sets are equal if and only if
|
||||
every element of each set is contained in the other.
|
||||
|
||||
The following table lists operations available in \class{ImmutableSet}
|
||||
but not found in \class{Set}:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue