[issue37479] IntEnum f-string behavior can't be overridden
Jason Curtis
report at bugs.python.org
Mon Jul 1 19:43:05 EDT 2019
Jason Curtis <thatneat at gmail.com> added the comment:
related cPython code: https://github.com/python/cpython/blob/19a1e1eb86115db66c1faae5927f87e3a12692fc/Lib/enum.py#L626
If we're in a mixed-in class but the class has overridden __str__(), we should probably use str(self) instead of self._value_.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37479>
_______________________________________
More information about the Python-bugs-list
mailing list