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 ethan.furman
Recipients ethan.furman
Date 2021-06-18.21:33:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624052006.12.0.84955724933.issue44457@roundup.psfhosted.org>
In-reply-to
Content
Finish the work started in issue43945 -- in 3.12 `format()` now uses the enum member itself instead of its `value`; e.g.:

    >>> class Color(int, Enum):
    ...     RED = 1

    >>> f"{Color.RED}"
    'RED'
    >>> f"{Color.RED:d}"
    '1'
History
Date User Action Args
2021-06-18 21:33:26ethan.furmansetrecipients: + ethan.furman
2021-06-18 21:33:26ethan.furmansetmessageid: <1624052006.12.0.84955724933.issue44457@roundup.psfhosted.org>
2021-06-18 21:33:26ethan.furmanlinkissue44457 messages
2021-06-18 21:33:26ethan.furmancreate