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 serhiy.storchaka
Recipients ethan.furman, serhiy.storchaka, srittau
Date 2016-01-15.16:28:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452875302.37.0.948277117571.issue26123@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, this a side effect of using more human-friendly enums. This is not a problem if string representation is used in formatting human-readable messages, but if you need numerical representation, you could use str(int(code)), '%d' % code or '{:d}'.format(code).
History
Date User Action Args
2016-01-15 16:28:22serhiy.storchakasetrecipients: + serhiy.storchaka, srittau, ethan.furman
2016-01-15 16:28:22serhiy.storchakasetmessageid: <1452875302.37.0.948277117571.issue26123@psf.upfronthosting.co.za>
2016-01-15 16:28:22serhiy.storchakalinkissue26123 messages
2016-01-15 16:28:22serhiy.storchakacreate