Message396098
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' |
|
Date |
User |
Action |
Args |
2021-06-18 21:33:26 | ethan.furman | set | recipients:
+ ethan.furman |
2021-06-18 21:33:26 | ethan.furman | set | messageid: <1624052006.12.0.84955724933.issue44457@roundup.psfhosted.org> |
2021-06-18 21:33:26 | ethan.furman | link | issue44457 messages |
2021-06-18 21:33:26 | ethan.furman | create | |
|