Browse Source
bpo-40989: PyObject_INIT() becomes an alias to PyObject_Init() (GH-20901)
bpo-40989: PyObject_INIT() becomes an alias to PyObject_Init() (GH-20901)
The PyObject_INIT() and PyObject_INIT_VAR() macros become aliases to, respectively, PyObject_Init() and PyObject_InitVar() functions. Rename _PyObject_INIT() and _PyObject_INIT_VAR() static inline functions to, respectively, _PyObject_Init() and _PyObject_InitVar(), and move them to pycore_object.h. Remove their return value: their return type becomes void. The _datetime module is now built with the Py_BUILD_CORE_MODULE macro defined. Remove an outdated comment on _Py_tracemalloc_config.pull/20915/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 113 additions and 117 deletions
-
39Include/cpython/objimpl.h
-
37Include/internal/pycore_object.h
-
3Include/internal/pycore_pymem.h
-
22Include/objimpl.h
-
3Misc/NEWS.d/next/C API/2020-06-15-23-17-51.bpo-40989.tlzG3r.rst
-
31Modules/_datetimemodule.c
-
12Modules/gcmodule.c
-
15Objects/bytesobject.c
-
11Objects/complexobject.c
-
5Objects/floatobject.c
-
4Objects/longobject.c
-
16Objects/object.c
-
2Objects/tupleobject.c
-
4Objects/typeobject.c
-
13Objects/unicodeobject.c
-
10PC/winreg.c
-
3setup.py
@ -0,0 +1,3 @@ |
|||||
|
The :c:func:`PyObject_INIT` and :c:func:`PyObject_INIT_VAR` macros become |
||||
|
aliases to, respectively, :c:func:`PyObject_Init` and |
||||
|
:c:func:`PyObject_InitVar` functions. |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue