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 vstinner
Recipients doerwalter, eric.smith, ezio.melotti, francismb, vstinner
Date 2013-07-02.00:34:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372725270.81.0.302022447033.issue7267@psf.upfronthosting.co.za>
In-reply-to
Content
u'{0:c}'.format(256) calls 256.__format__('c') which returns a str (bytes) object, so we must reject value outside range(0, 256). The real fix for this issue is to upgrade to Python 3.

Attached patch works around the inital issue (u'{0:c}'.format(256)) by raising OverflowError on int.__format__('c') if the value is not in range(0, 256).
History
Date User Action Args
2013-07-02 00:34:30vstinnersetrecipients: + vstinner, doerwalter, eric.smith, ezio.melotti, francismb
2013-07-02 00:34:30vstinnersetmessageid: <1372725270.81.0.302022447033.issue7267@psf.upfronthosting.co.za>
2013-07-02 00:34:30vstinnerlinkissue7267 messages
2013-07-02 00:34:28vstinnercreate