gh-111178: Change Argument Clinic signature for @classmethod (#131157)

Use "PyObject*", instead of "PyTypeObject*", for `@classmethod`
functions to fix an undefined behavior.
This commit is contained in:
Victor Stinner 2025-03-12 17:42:07 +01:00 committed by GitHub
parent de2f7da77d
commit 061da44bac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 164 additions and 62 deletions

View file

@ -1843,8 +1843,8 @@ Alternative chain() constructor taking a single iterable argument that evaluates
[clinic start generated code]*/
static PyObject *
itertools_chain_from_iterable(PyTypeObject *type, PyObject *arg)
/*[clinic end generated code: output=667ae7a7f7b68654 input=72c39e3a2ca3be85]*/
itertools_chain_from_iterable_impl(PyTypeObject *type, PyObject *arg)
/*[clinic end generated code: output=3d7ea7d46b9e43f5 input=72c39e3a2ca3be85]*/
{
PyObject *source;