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.

Author ethan.furman
Recipients ethan.furman
Date 2021-06-16.02:43:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:07ethan.furmansetrecipients: + ethan.furman
2021-06-16 02:43:07ethan.furmansetmessageid: <>
2021-06-16 02:43:07ethan.furmanlinkissue43945 messages
2021-06-16 02:43:06ethan.furmancreate