]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40170: Update What's New in Python 3.9 (GH-29470) (GH-29472)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Nov 2021 17:10:41 +0000 (09:10 -0800)
committerGitHub <noreply@github.com>
Mon, 8 Nov 2021 17:10:41 +0000 (18:10 +0100)
The PyType_HasFeature() change has been reverted: the static inline
function access directly the PyTypeObject.tp_flags member.
(cherry picked from commit 99c7e9853fa13af414168f179213e3d2fae03a45)

Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/whatsnew/3.9.rst

index c29715d192f9534207b52812a4a5bc49079d0fbc..0662adba7d4af5fe63c5a4bef70eb27c82a19c37 100644 (file)
@@ -1377,10 +1377,6 @@ Porting to Python 3.9
     becomes an alias to the :c:func:`PyObject_NewVar` macro. They no longer
     access directly the :c:member:`PyTypeObject.tp_basicsize` member.
 
-  * :c:func:`PyType_HasFeature` now always calls :c:func:`PyType_GetFlags`.
-    Previously, it accessed directly the :c:member:`PyTypeObject.tp_flags`
-    member when the limited C API was not used.
-
   * :c:func:`PyObject_GET_WEAKREFS_LISTPTR` macro was converted to a function:
     the macro accessed directly the :c:member:`PyTypeObject.tp_weaklistoffset`
     member.