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 vstinner
Date 2012-10-06.21:56:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349560581.01.0.621984773801.issue16153@psf.upfronthosting.co.za>
In-reply-to
Content
If the format string is invalid, PyUnicode_FromFormatV() formats the valid arguments and then copies the raw format string. Errors are silently ignored.

I propose to raise a ValueError if the format string is invalid. This change may "break" existing applications, but I hope that nobody relies on this "bug" :-)

Attached patch implements my proposition.
History
Date User Action Args
2012-10-06 21:56:21vstinnersetrecipients: + vstinner
2012-10-06 21:56:21vstinnersetmessageid: <1349560581.01.0.621984773801.issue16153@psf.upfronthosting.co.za>
2012-10-06 21:56:20vstinnerlinkissue16153 messages
2012-10-06 21:56:20vstinnercreate