Browse Source
bpo-40170: PyObject_NEW() becomes an alias to PyObject_New() (GH-19379)
bpo-40170: PyObject_NEW() becomes an alias to PyObject_New() (GH-19379)
The PyObject_NEW() macro becomes an alias to the PyObject_New() macro, and the PyObject_NEW_VAR() macro becomes an alias to the PyObject_NewVar() macro, to hide implementation details. They no longer access directly the PyTypeObject.tp_basicsize member. Exclude _PyObject_SIZE() and _PyObject_VAR_SIZE() macros from the limited C API. Replace PyObject_NEW() with PyObject_New() and replace PyObject_NEW_VAR() with PyObject_NewVar().pull/19426/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 81 additions and 78 deletions
-
50Include/cpython/objimpl.h
-
70Include/objimpl.h
-
4Misc/NEWS.d/next/C API/2020-04-05-00-37-34.bpo-40170.Seuh3D.rst
-
2Modules/_curses_panel.c
-
2Modules/_cursesmodule.c
-
8Modules/_sre.c
-
2Objects/capsule.c
-
2Objects/codeobject.c
-
9Objects/object.c
-
8PC/_msi.c
-
2PC/winreg.c
@ -0,0 +1,4 @@ |
|||
The :c:func:`PyObject_NEW` macro becomes an alias to the :c:func:`PyObject_New` |
|||
macro, and the :c:func:`PyObject_NEW_VAR` macro becomes an alias to the |
|||
:c:func:`PyObject_NewVar` macro, to hide implementation details. They no longer |
|||
access directly the :c:member:`PyTypeObject.tp_basicsize` member. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue