summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-08-04 15:19:29 (GMT)
committerGitHub <noreply@github.com>2022-08-04 15:19:29 (GMT)
commit7b370b73055d757ed09c7942f4631256b27fdcb6 (patch)
tree3cdc13e79e82b0f60c49b36b6fbdf72abd4cf52b /Doc/whatsnew
parenta613fedd6e18e4ab382cf81ec767e1135fc949a7 (diff)
downloadcpython-7b370b73055d757ed09c7942f4631256b27fdcb6.zip
cpython-7b370b73055d757ed09c7942f4631256b27fdcb6.tar.gz
cpython-7b370b73055d757ed09c7942f4631256b27fdcb6.tar.bz2
gh-93274: Make vectorcall safe on mutable classes & inherit it by default (#95437)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index be05997..97a52e2 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -414,6 +414,15 @@ New Features
an additional metaclass argument.
(Contributed by Wenzel Jakob in :gh:`93012`.)
+* (XXX: this should be combined with :gh:`93274` when that is done)
+ The :const:`Py_TPFLAGS_HAVE_VECTORCALL` flag is now removed from a class
+ when the class's :py:meth:`~object.__call__` method is reassigned.
+ This makes vectorcall safe to use with mutable types (i.e. heap types
+ without the :const:`immutable <Py_TPFLAGS_IMMUTABLETYPE>` flag).
+ Mutable types that do not override :c:member:`~PyTypeObject.tp_call` now
+ inherit the :const:`Py_TPFLAGS_HAVE_VECTORCALL` flag.
+ (Contributed by Petr Viktorin in :gh:`93012`.)
+
Porting to Python 3.12
----------------------