]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111178: Change Argument Clinic signature for `@classmethod` (#131157)
authorVictor Stinner <vstinner@python.org>
Wed, 12 Mar 2025 16:42:07 +0000 (17:42 +0100)
committerGitHub <noreply@github.com>
Wed, 12 Mar 2025 16:42:07 +0000 (17:42 +0100)
commit061da44bacf347cc1fe82b03976e95f9c0992673
treefe27530c0e60fbdbc9739f28e39a260e57a84224
parentde2f7da77d9e8dc6758430249e7179d37b3fee44
gh-111178: Change Argument Clinic signature for `@classmethod` (#131157)

Use "PyObject*", instead of "PyTypeObject*", for `@classmethod`
functions to fix an undefined behavior.
22 files changed:
Lib/test/clinic.test.c
Modules/_datetimemodule.c
Modules/_multiprocessing/clinic/semaphore.c.h
Modules/clinic/_datetimemodule.c.h
Modules/clinic/_zoneinfo.c.h
Modules/clinic/itertoolsmodule.c.h
Modules/clinic/selectmodule.c.h
Modules/itertoolsmodule.c
Objects/bytearrayobject.c
Objects/bytesobject.c
Objects/clinic/bytearrayobject.c.h
Objects/clinic/bytesobject.c.h
Objects/clinic/complexobject.c.h
Objects/clinic/dictobject.c.h
Objects/clinic/floatobject.c.h
Objects/clinic/longobject.c.h
Objects/clinic/memoryobject.c.h
Objects/clinic/odictobject.c.h
Objects/complexobject.c
Objects/floatobject.c
Tools/clinic/libclinic/converters.py
Tools/clinic/libclinic/parse_args.py