Skip to content

Commit

Permalink
bpo-40170: Update What's New in Python 3.9 (GH-29470) (GH-29472)
Browse files Browse the repository at this point in the history
The PyType_HasFeature() change has been reverted: the static inline
function access directly the PyTypeObject.tp_flags member.
(cherry picked from commit 99c7e98)

Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
miss-islington and vstinner authored Nov 8, 2021
1 parent 6b0ea06 commit 80580f5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Doc/whatsnew/3.9.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 80580f5

Please sign in to comment.