New submission from STINNER Victor: 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. ---------- files: invalid_format.patch keywords: patch messages: 172250 nosy: haypo priority: normal severity: normal status: open title: PyUnicode_FromFormatV() must fail if the format string is invalid versions: Python 3.4 Added file: http://bugs.python.org/file27461/invalid_format.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16153> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com