]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95781: More strict format string checking in PyUnicode_FromFormatV() (GH-95784)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 8 Aug 2022 16:21:07 +0000 (19:21 +0300)
committerGitHub <noreply@github.com>
Mon, 8 Aug 2022 16:21:07 +0000 (19:21 +0300)
commit62f06508e76e023a81861caee6a45e1d639bf530
tree7314afc6ee3da212616d55d24cfd9e2a9853dcac
parent63140b445e4a303df430b3d60c1cd4ef34f27c03
gh-95781: More strict format string checking in PyUnicode_FromFormatV() (GH-95784)

An unrecognized format character in PyUnicode_FromFormat() and
PyUnicode_FromFormatV() now sets a SystemError.
In previous versions it caused all the rest of the format string to be
copied as-is to the result string, and any extra arguments discarded.
Doc/c-api/unicode.rst
Doc/whatsnew/3.12.rst
Lib/test/test_unicode.py
Misc/NEWS.d/next/C API/2022-08-08-14-36-31.gh-issue-95781.W_G8YW.rst [new file with mode: 0644]
Objects/unicodeobject.c