diff options
| author | Victor Stinner <vstinner@python.org> | 2020-04-08 00:38:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-08 00:38:15 +0200 |
| commit | 9205520d8c43488696d66cbdd9aefbb21871c508 (patch) | |
| tree | 6c6d03828fddd763f261d89a9afef18b109c0d3d /Modules/_cursesmodule.c | |
| parent | f9dd51e7db27d04e0b716d41a2804d5acbf145d1 (diff) | |
| download | cpython-git-9205520d8c43488696d66cbdd9aefbb21871c508.tar.gz | |
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().
Diffstat (limited to 'Modules/_cursesmodule.c')
| -rw-r--r-- | Modules/_cursesmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 3d16af7f0a..ca6a89f1db 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -547,7 +547,7 @@ PyCursesWindow_New(WINDOW *win, const char *encoding) encoding = "utf-8"; } - wo = PyObject_NEW(PyCursesWindowObject, &PyCursesWindow_Type); + wo = PyObject_New(PyCursesWindowObject, &PyCursesWindow_Type); if (wo == NULL) return NULL; wo->win = win; wo->encoding = _PyMem_Strdup(encoding); |
