Message195736
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? |
|
Date |
User |
Action |
Args |
2013-08-21 00:43:57 | ethan.furman | set | recipients:
+ ethan.furman, barry, eric.smith, eli.bendersky, serhiy.storchaka |
2013-08-21 00:43:57 | ethan.furman | link | issue18738 messages |
2013-08-21 00:43:57 | ethan.furman | create | |
|