mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-111178: Change Argument Clinic signature for METH_O (#130682)
Use "PyObject*" for METH_O functions to fix an undefined behavior.
This commit is contained in:
parent
4162bc133b
commit
9d759b63d8
66 changed files with 843 additions and 190 deletions
|
|
@ -1303,8 +1303,8 @@ This is guaranteed to be unique among simultaneously existing objects.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_id(PyModuleDef *self, PyObject *v)
|
||||
/*[clinic end generated code: output=0aa640785f697f65 input=5a534136419631f4]*/
|
||||
builtin_id_impl(PyModuleDef *self, PyObject *v)
|
||||
/*[clinic end generated code: output=4908a6782ed343e9 input=5a534136419631f4]*/
|
||||
{
|
||||
PyObject *id = PyLong_FromVoidPtr(v);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue