[issue18738] String formatting (% and str.format) issues with Enum
Eric V. Smith
report at bugs.python.org
Wed Aug 14 22:19:11 CEST 2013
Eric V. Smith added the comment:
If IntEnum.__format__ is going to parse the format string, it's a little fragile. For example, say we modify int.__format__ to understand a "Z" presentation type. Who's going to remember to update IntEnum.__format__?
For reference, the existing integer formats are: "bdoxXn".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18738>
_______________________________________
More information about the Python-bugs-list
mailing list