mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -2781,8 +2781,8 @@ Count the number of occurrences of a value.
|
|||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
memoryview_count(PyMemoryViewObject *self, PyObject *value)
|
||||
/*[clinic end generated code: output=e2c255a8d54eaa12 input=e3036ce1ed7d1823]*/
|
||||
memoryview_count_impl(PyMemoryViewObject *self, PyObject *value)
|
||||
/*[clinic end generated code: output=a15cb19311985063 input=e3036ce1ed7d1823]*/
|
||||
{
|
||||
PyObject *iter = PyObject_GetIter(_PyObject_CAST(self));
|
||||
if (iter == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue