mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
gh-108444: Argument Clinic uses PyLong_AsInt() (#108458)
Argument Clinic now uses the new public PyLong_AsInt(), rather than the old name _PyLong_AsInt().
This commit is contained in:
parent
be800f4be7
commit
4e5a7284ee
73 changed files with 467 additions and 466 deletions
4
Modules/clinic/arraymodule.c.h
generated
4
Modules/clinic/arraymodule.c.h
generated
|
|
@ -589,7 +589,7 @@ array__array_reconstructor(PyObject *module, PyObject *const *args, Py_ssize_t n
|
|||
goto exit;
|
||||
}
|
||||
typecode = PyUnicode_READ_CHAR(args[1], 0);
|
||||
mformat_code = _PyLong_AsInt(args[2]);
|
||||
mformat_code = PyLong_AsInt(args[2]);
|
||||
if (mformat_code == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
|
@ -674,4 +674,4 @@ PyDoc_STRVAR(array_arrayiterator___setstate____doc__,
|
|||
|
||||
#define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \
|
||||
{"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__},
|
||||
/*[clinic end generated code: output=11595e9f38d6d500 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=db417f5677a25eaa input=a9049054013a1b77]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue