Message195215
--> class Test(enum.IntEnum):
... one = 1
... two = 2
...
--> '{}'.format(Test.one)
'Test.one'
--> '{:d}'.format(Test.one)
'1'
--> '{:}'.format(Test.one)
'Test.one'
--> '{:10}'.format(Test.one)
' 1'
Sometimes the str is used, and sometimes the value of the int is used. I suggesting we tighten that up. |
|
Date |
User |
Action |
Args |
2013-08-14 21:13:28 | ethan.furman | set | recipients:
+ ethan.furman, barry, eric.smith, eli.bendersky, serhiy.storchaka |
2013-08-14 21:13:28 | ethan.furman | link | issue18738 messages |
2013-08-14 21:13:28 | ethan.furman | create | |
|