This commit is contained in:
Barry Warsaw 2013-04-05 14:25:16 -04:00
parent af9a392e94
commit 97ecde0859
1 changed files with 3 additions and 3 deletions

View File

@ -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
complexity, though minimal, is hidden from users of the enumeration.
Unlike PEP 354, enumeration values can only be tested by identity comparison.
This is to emphasize the fact that enumeration values are singletons, much
like ``None``.
Unlike PEP 354, enumeration values should only be tested by identity
comparison. This is to emphasize the fact that enumeration values are
singletons, much like ``None``.
Acknowledgments