Mailing List Archive

[issue44457] Finish format() change started in issue43945
Change by Ethan Furman <ethan@stoneleaf.us>:


----------
status: open -> pending

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue44457>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue44457] Finish format() change started in issue43945 [ In reply to ]
New submission from Ethan Furman <ethan@stoneleaf.us>:

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'

----------
assignee: ethan.furman
messages: 396098
nosy: ethan.furman
priority: normal
severity: normal
status: open
title: Finish format() change started in issue43945
type: behavior

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue44457>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com