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 <1623811387.49.0.753743907568.issue43945@roundup.psfhosted.org>
In-reply-to
Content
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'.
History
Date User Action Args
2021-06-16 02:43:07ethan.furmansetrecipients: + ethan.furman
2021-06-16 02:43:07ethan.furmansetmessageid: <1623811387.49.0.753743907568.issue43945@roundup.psfhosted.org>
2021-06-16 02:43:07ethan.furmanlinkissue43945 messages
2021-06-16 02:43:06ethan.furmancreate