Ethan Furman added the comment:
Eli Bendersky added the comment:
>
> The whole point of IntEnum and replacing stdlib constants with it was
> friendly str & repr out of the box.
Sure, friendly str and repr plus an nice way to work them in code.
> This means that "just printing out" an enum member should have a nice string
> representation.
And when are you going to print out an enum? Debugger and/or command line.
> And "just printing out" means:
>
> print(member)
> "%s" % member
> "{}".format(member)
Would you seriously use either of those last two in either the debugger
or the command line?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18738>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com