This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author socketpair
Recipients docs@python, socketpair
Date 2020-05-21.21:42:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590097376.47.0.46238939319.issue40721@roundup.psfhosted.org>
In-reply-to
Content
Example from PEP0435:

(https://www.python.org/dev/peps/pep-0435)

>>> from enum import Enum
>>> class Color(Enum):
...     red = 1
...     green = 2
...     blue = 3

Example from Python documentation:

(https://docs.python.org/3/library/enum.html)

>>> from enum import Enum
>>> class Color(Enum):
...     RED = 1
...     GREEN = 2
...     BLUE = 3
...

So, what are the rules for naming enum members?
CamelCase ? snake_case ? ALL_CAPS ?

Someone should explain how should we format sources. So various linters may check for that.
History
Date User Action Args
2020-05-21 21:42:56socketpairsetrecipients: + socketpair, docs@python
2020-05-21 21:42:56socketpairsetmessageid: <1590097376.47.0.46238939319.issue40721@roundup.psfhosted.org>
2020-05-21 21:42:56socketpairlinkissue40721 messages
2020-05-21 21:42:56socketpaircreate