summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-08-08 16:21:07 (GMT)
committerGitHub <noreply@github.com>2022-08-08 16:21:07 (GMT)
commit62f06508e76e023a81861caee6a45e1d639bf530 (patch)
tree7314afc6ee3da212616d55d24cfd9e2a9853dcac /Doc/whatsnew
parent63140b445e4a303df430b3d60c1cd4ef34f27c03 (diff)
downloadcpython-62f06508e76e023a81861caee6a45e1d639bf530.zip
cpython-62f06508e76e023a81861caee6a45e1d639bf530.tar.gz
cpython-62f06508e76e023a81861caee6a45e1d639bf530.tar.bz2
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.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index f1696cc..6df122a 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -469,6 +469,12 @@ Porting to Python 3.12
:py:meth:`~class.__subclasses__` (using :c:func:`PyObject_CallMethod`,
for example).
+* An unrecognized format character in :c:func:`PyUnicode_FromFormat` and
+ :c:func:`PyUnicode_FromFormatV` now sets a :exc:`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.
+ (Contributed by Serhiy Storchaka in :gh:`95781`.)
+
Deprecated
----------