This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients barry, eli.bendersky, eric.smith, ethan.furman, serhiy.storchaka
Date 2013-08-14.21:13:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <520BF2F7.8090705@stoneleaf.us>
In-reply-to <1376513867.95.0.878649401767.issue18738@psf.upfronthosting.co.za>
Content
--> 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.
History
Date User Action Args
2013-08-14 21:13:28ethan.furmansetrecipients: + ethan.furman, barry, eric.smith, eli.bendersky, serhiy.storchaka
2013-08-14 21:13:28ethan.furmanlinkissue18738 messages
2013-08-14 21:13:28ethan.furmancreate