]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40170: Update What's New in Python 3.9 (GH-29470)
authorVictor Stinner <vstinner@python.org>
Mon, 8 Nov 2021 16:41:56 +0000 (17:41 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Nov 2021 16:41:56 +0000 (17:41 +0100)
The PyType_HasFeature() change has been reverted: the static inline
function access directly the PyTypeObject.tp_flags member.

Doc/whatsnew/3.9.rst

index 941fae5fb87813a805106574e2b5a9e0a35423d8..0d514084d6cc14ba693253e37eb990a35fccf5c6 100644 (file)
@@ -1378,10 +1378,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.