gh-98250: Improve documentation about change to Enum.__format__#98261
gh-98250: Improve documentation about change to Enum.__format__#98261mdboom wants to merge 2 commits intopython:mainfrom
Conversation
Doc/whatsnew/3.11.rst
Outdated
|
|
||
| * ``EnumMeta`` renamed to ``EnumType`` (``EnumMeta`` kept as alias). | ||
|
|
||
| * The output of ``Enum.__format__`` has changed to include both the enum name |
There was a problem hiding this comment.
Might be worth adding explicitly that this affects enums included in f-strings, since that may not be obvious to a lot of readers.
|
Hey, I missed seeing this before I submitted #98295 , but it turns out I noticed a similar issue, as the What's New was not entirely clear on that point, and had already made some enhancements in that regard. I went ahead and made some further improvements and expansions there to more comprehensively address #98250 and incorporate the intent of the changes here, alongside @JelleZijlstra 's suggestion and a number of additional fixes and clarifications. As that PR essentially rewrites that section and will thus conflict with this one, which I'm still not sure is quite right (as |
|
Closing in favor of the more comprehensive #98295. |
Enum.__str__change could be improved in What's New #98250