Skip to content

bpo-40721: add note about enum member name case#22231

Merged
ethanfurman merged 2 commits intopython:masterfrom
ethanfurman:enum-upper_case
Sep 14, 2020
Merged

bpo-40721: add note about enum member name case#22231
ethanfurman merged 2 commits intopython:masterfrom
ethanfurman:enum-upper_case

Conversation

@ethanfurman
Copy link
Copy Markdown
Member

@ethanfurman ethanfurman commented Sep 13, 2020

Which is that UPPER_CASE is preferred as enums are constants.

https://bugs.python.org/issue40721

@bedevere-bot bedevere-bot added docs Documentation in the Doc dir awaiting core review labels Sep 13, 2020
@ethanfurman ethanfurman self-assigned this Sep 13, 2020
@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @ethanfurman for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @ethanfurman for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 14, 2020
* UPPER_CASE preferred as enum members are constants
(cherry picked from commit 542e1df)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
@bedevere-bot
Copy link
Copy Markdown

GH-22247 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 14, 2020
* UPPER_CASE preferred as enum members are constants
(cherry picked from commit 542e1df)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
@bedevere-bot
Copy link
Copy Markdown

GH-22248 is a backport of this pull request to the 3.9 branch.

miss-islington added a commit that referenced this pull request Sep 14, 2020
* UPPER_CASE preferred as enum members are constants
(cherry picked from commit 542e1df)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
miss-islington added a commit that referenced this pull request Sep 14, 2020
* UPPER_CASE preferred as enum members are constants
(cherry picked from commit 542e1df)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
* UPPER_CASE preferred as enum members are constants
@ethanfurman ethanfurman deleted the enum-upper_case branch April 15, 2021 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants