mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -604,8 +604,8 @@ Return number of occurrences of value.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
tuple_count(PyTupleObject *self, PyObject *value)
|
||||
/*[clinic end generated code: output=aa927affc5a97605 input=531721aff65bd772]*/
|
||||
tuple_count_impl(PyTupleObject *self, PyObject *value)
|
||||
/*[clinic end generated code: output=cf02888d4bc15d7a input=531721aff65bd772]*/
|
||||
{
|
||||
Py_ssize_t count = 0;
|
||||
Py_ssize_t i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue