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 ezio.melotti
Recipients doerwalter, eric.smith, ezio.melotti, vstinner
Date 2010-01-07.11:49:15
SpamBayes Score 0.00037143816
Marked as misclassified No
Message-id <1262864957.57.0.964886577876.issue7649@psf.upfronthosting.co.za>
In-reply-to
Content
If we allow it to work on 2.7 the code will break:
1) when ported to Py3, where mixing bytes strings and unicode is not allowed;
2) when used on Py<2.7, where the behavior is broken;
3) when converted to str.format, where only ints are accepted.

If we raise an error, the user will have to either use unicode strings or ints and he will avoid further problems. Moreover, the fact that no one noticed this problems means that is not a common operation, so no one probably expects it to work anyway and raising an error could even help to find the problem if someone used %c in older versions.
History
Date User Action Args
2010-01-07 11:49:17ezio.melottisetrecipients: + ezio.melotti, doerwalter, vstinner, eric.smith
2010-01-07 11:49:17ezio.melottisetmessageid: <1262864957.57.0.964886577876.issue7649@psf.upfronthosting.co.za>
2010-01-07 11:49:16ezio.melottilinkissue7649 messages
2010-01-07 11:49:15ezio.melotticreate