[issue41816] need StrEnum in enum.py
Ethan Furman
report at bugs.python.org
Tue Sep 22 10:01:00 EDT 2020
Ethan Furman <ethan at stoneleaf.us> added the comment:
>From Serhiy Storchaka:
---------------------
The only exception is StrEnum -- overriding __str__ of str
subclass may be not safe. Some code will call str() implicitly, other
will read the string content of the object directly, and they will be
different.
----------
resolution: fixed ->
stage: resolved -> needs patch
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41816>
_______________________________________
More information about the Python-bugs-list
mailing list