[Python-Dev] Re: PEP 663: Improving and Standardizing Enum str(), repr(), and format() behaviors

2021年9月11日 01:06:59 -0700

> On 11 Sep 2021, at 06:57, Ethan Furman <[email protected]> wrote:
> 
> If the previous output needs to be maintained, for example to ensure
> compatibily between different Python versions, software projects will need to
> create their own enum base class with the appropriate methods overridden.
Perhaps you could provide that backwards-compatible base class, either in the 
library as a deprecated class or at least in the PEP for people to copy if they 
need it?
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/YFKBT3FTNRZHTBWT6CUV62CUKSHVTTYK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to