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 baker.dylan.c, ethan.furman, hroncok
Date 2021-02-09.01:43:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612835004.71.0.902678798624.issue43162@roundup.psfhosted.org>
In-reply-to
Content
Dylan, it's not the `from_str()` method, but the `__str__` method that is the problem.  Instead of

    def __str__(self):
        if self is self.EXITCODE: 
            return 'exitcode' 

it should be

    def __str__(self):

        cls = self.__class__

        if self is cls.EXITCODE: 
            return 'exitcode'
History
Date User Action Args
2021-02-09 01:43:24ethan.furmansetrecipients: + ethan.furman, hroncok, baker.dylan.c
2021-02-09 01:43:24ethan.furmansetmessageid: <1612835004.71.0.902678798624.issue43162@roundup.psfhosted.org>
2021-02-09 01:43:24ethan.furmanlinkissue43162 messages
2021-02-09 01:43:24ethan.furmancreate