Skip to content
Prev Previous commit
Next Next commit
Merge branch 'main' into pylong_asuintptr_t
  • Loading branch information
arhadthedev authored Aug 4, 2022
commit ef8ae6fd33eff086f0ab4bd7557a6c6abe5043da
10 changes: 10 additions & 0 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,16 @@ New Features
:c:func:`PyLong_FromUintptr_t`.
(Contributed by Oleg Iarygin in :gh:`95417`.)

* (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
----------------------

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.