wording
This commit is contained in:
parent
af9a392e94
commit
97ecde0859
|
@ -568,9 +568,9 @@ common values in derived classes are identical (a singleton model). While PEP
|
||||||
354 dismisses this approach for its complexity, in practice any perceived
|
354 dismisses this approach for its complexity, in practice any perceived
|
||||||
complexity, though minimal, is hidden from users of the enumeration.
|
complexity, though minimal, is hidden from users of the enumeration.
|
||||||
|
|
||||||
Unlike PEP 354, enumeration values can only be tested by identity comparison.
|
Unlike PEP 354, enumeration values should only be tested by identity
|
||||||
This is to emphasize the fact that enumeration values are singletons, much
|
comparison. This is to emphasize the fact that enumeration values are
|
||||||
like ``None``.
|
singletons, much like ``None``.
|
||||||
|
|
||||||
|
|
||||||
Acknowledgments
|
Acknowledgments
|
||||||
|
|
Loading…
Reference in New Issue