re: sets, "subclass/superclass" should be "subset/superset" (#2138)

re: sets, "subclass/superclass" should be "subset/superset" when referring to the inequality operations on sets.
This commit is contained in:
joseville1001 2021-11-08 15:20:43 -05:00 committed by GitHub
parent 2eaa17b707
commit a66ce05a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -542,13 +542,13 @@ type ``frozenset`` derives from ``Set`` and ``Hashable``.
those three classes is a set though! Sets have the additional
invariant that each element occurs only once (as can be determined
by iteration), and in addition sets define concrete operators that
implement the inequality operations as subclass/superclass tests.
implement the inequality operations as subset/superset tests.
In general, the invariants for finite sets in mathematics
hold. [11]_
Sets with different implementations can be compared safely,
(usually) efficiently and correctly using the mathematical
definitions of the subclass/superclass operations for finite sets.
definitions of the subset/supeset operations for finite sets.
The ordering operations have concrete implementations; subclasses
may override these for speed but should maintain the semantics.
Because ``Set`` derives from ``Sized``, ``__eq__`` may take a