classification
Title: Finish format() change started in issue43945
Type: behavior Stage:
Components: Versions:
process
Status: pending 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 2021-06-18 21:33 by ethan.furman.

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
2021-06-18 21:33:33ethan.furmansetstatus: open -> pending
2021-06-18 21:33:26ethan.furmancreate