8000 bpo-37479: on Enum subclasses with mixins, __format__ uses overridden __str__ by jason-curtis · Pull Request #14545 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37479: on Enum subclasses with mixins, __format__ uses overridden __str__ #14545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 4, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
NEWS entry
  • Loading branch information
jason-curtis committed Jul 2, 2019
commit 91fb2cd62827a5c5800ba8a4f505d19c94a09f17
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
When `Enum.__str__` is overridden in a derived class, the override will be
used by `Enum.__format__` regardless of whether mixin classes are present.
0