Message395904
Thinking about this some more I am partially reversing course. The idea behind `IntEnum` and `IntFlag` is to be, as close as possible, drop-in replacements for existing integer-based constants. If the format() of those two change then they become much less attractive.
So it won't. Instead, any user-mixed enumerations will get the new behavior:
class Grades(int, Enum):
A = 5
F = 0
will emit a DeprecationWarning now, and in 3.12 `format(Grades.A)` will product 'A' instead of '5'. |
|
Date |
User |
Action |
Args |
2021-06-16 02:43:07 | ethan.furman | set | recipients:
+ ethan.furman |
2021-06-16 02:43:07 | ethan.furman | set | messageid: <1623811387.49.0.753743907568.issue43945@roundup.psfhosted.org> |
2021-06-16 02:43:07 | ethan.furman | link | issue43945 messages |
2021-06-16 02:43:06 | ethan.furman | create | |
|