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.

classification
Title: Finish format() change started in issue43945
Type: behavior Stage:
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: ethan.furman Nosy List: ethan.furman
Priority: normal Keywords:

Created on 2021-06-18 21:33 by ethan.furman, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg396098 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2021-06-18 21:33
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
2022-04-11 14:59:46adminsetstatus: pending -> open
github: 88623
2021-06-18 21:33:33ethan.furmansetstatus: open -> pending
2021-06-18 21:33:26ethan.furmancreate