Should 3.4 enums use UPPER_CASE_WITH_UNDERSCORES?
问题 As the documentation says, an enumeration is a set of symbolic names (members) bound to unique, constant values. The PEP8 says that constants are usually named as UPPER_CASE , should I use this notation in Python 3.4 enums? If yes, why the examples in the docs are using lower_case ? 回答1: Update The BDFL (Benevolent Dictator For Life) has spoken, and the Enum documentation has changed to reflect all upper-case member names. The examples in the [previous] docs are lower-case primarily because