[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions
STINNER Victor
report at bugs.python.org
Fri Nov 23 07:49:31 EST 2018
STINNER Victor <vstinner at redhat.com> added the comment:
"PyObject* PyObject_INIT(PyObject *op, PyTypeObject *typeobj)"
and
"PyVarObject* PyObject_INIT_VAR(PyVarObject *op, PyTypeObject *typeobj, Py_ssize_t size)"
Don't cast their argument to PyObject*/PyVarObject* which can introduce new warnings when upgrading from Python 3.7 to Python 3.8.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35059>
_______________________________________
More information about the Python-bugs-list
mailing list