-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-34443: Use __qualname__ instead of __name__ in enum exception messages. #14809
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
bpo-34443: Use __qualname__ instead of __name__ in enum exception messages. #14809
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise looks good
@@ -0,0 +1,2 @@ | |||
Exceptions from :mod:`enum` now use the `__qualname` of the enum class in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exceptions from :mod:`enum` now use the `__qualname` of the enum class in | |
Exceptions from :mod:`enum` now use the ``__qualname__`` of the enum class in |
@@ -0,0 +1,2 @@ | |||
Exceptions from :mod:`enum` now use the `__qualname` of the enum class in | |||
the exception message instead of the `__name__`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the exception message instead of the `__name__`. | |
the exception message instead of the ``__name__``. |
OK, I've fixed the ReST markup. |
…sages. (pythonGH-14809) * Use __qualname__ instead of __name__ in enum exception messages.
…sages. (pythonGH-14809) * Use __qualname__ instead of __name__ in enum exception messages.
Thanks @doerwalter for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
GH-19166 is a backport of this pull request to the 3.7 branch. |
…sages. (pythonGH-14809) * Use __qualname__ instead of __name__ in enum exception messages. (cherry picked from commit 323842c) Co-authored-by: Walter Dörwald <walter@livinglogic.de>
…sages. (pythonGH-14809) * Use __qualname__ instead of __name__ in enum exception messages.
https://bugs.python.org/issue34443