]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40170: PyObject_NEW() becomes an alias to PyObject_New() (GH-19379)
authorVictor Stinner <vstinner@python.org>
Tue, 7 Apr 2020 22:38:15 +0000 (00:38 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Apr 2020 22:38:15 +0000 (00:38 +0200)
commit9205520d8c43488696d66cbdd9aefbb21871c508
tree6c6d03828fddd763f261d89a9afef18b109c0d3d
parentf9dd51e7db27d04e0b716d41a2804d5acbf145d1
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().
Include/cpython/objimpl.h
Include/objimpl.h
Misc/NEWS.d/next/C API/2020-04-05-00-37-34.bpo-40170.Seuh3D.rst [new file with mode: 0644]
Modules/_curses_panel.c
Modules/_cursesmodule.c
Modules/_sre.c
Objects/capsule.c
Objects/codeobject.c
Objects/object.c
PC/_msi.c
PC/winreg.c