Ethan Furman added the comment:
The behavior of not honoring the object.__str__ override is a bug in Enum and
currently being tracked in issue41789.
--
resolution: -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder: -> Enum: __str__ and friends sometimes
Ethan Furman added the comment:
>>> import re
>>> re.I
re.IGNORECASE
>>> print(re.I)
RegexFlag.IGNORECASE# according to comment in linked issue, this should be
`re.IGNORECASE` as well
--
___
Python tracker
New submission from Ethan Furman :
In issue36548 - Make the repr of re flags more readable - __str__ is set to
object.__str__. Hovewer, setting __str__ to object.__str__ means that EnumMeta
will replace __str__ with the first Enum's __str__ instead (Flag, in this case).
As asked in