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
Date 2015-02-16.21:50:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424123429.89.0.288713322155.issue23466@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch.

The difference between string and bytes formatting is that %c with out of the range integer raises OverflowError for str and TypeError for bytes. May be ValueError is more suitable in both cases.
History
Date User Action Args
2015-02-16 21:50:29serhiy.storchakasetrecipients: + serhiy.storchaka, ethan.furman
2015-02-16 21:50:29serhiy.storchakasetmessageid: <1424123429.89.0.288713322155.issue23466@psf.upfronthosting.co.za>
2015-02-16 21:50:29serhiy.storchakalinkissue23466 messages
2015-02-16 21:50:29serhiy.storchakacreate