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 andrewni, brett.cannon, ethan.furman, xtreak
Date 2019-12-18.17:48:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576691332.12.0.520515128458.issue39081@roundup.psfhosted.org>
In-reply-to
Content
The other option is to continue to inherit from `str`, but override the `__str__` method:

    class MyEnum(str, enum.Enum):
        #
        def __str__(self):
            return self.value
History
Date User Action Args
2019-12-18 17:48:52ethan.furmansetrecipients: + ethan.furman, brett.cannon, xtreak, andrewni
2019-12-18 17:48:52ethan.furmansetmessageid: <1576691332.12.0.520515128458.issue39081@roundup.psfhosted.org>
2019-12-18 17:48:52ethan.furmanlinkissue39081 messages
2019-12-18 17:48:52ethan.furmancreate