]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38787: Add PyCFunction_CheckExact() macro for exact type checks (GH-20024)
authorscoder <stefan_ml@behnel.de>
Tue, 12 May 2020 14:12:41 +0000 (16:12 +0200)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 14:12:41 +0000 (07:12 -0700)
commit4c9ea093cd752a6687864674d34250653653f743
tree1e20a7880c4054f345d7ab39a1835193baed83dd
parent5650e76f63a6f4ec55d00ec13f143d84a2efee39
bpo-38787: Add PyCFunction_CheckExact() macro for exact type checks (GH-20024)

… now that we allow subtypes of PyCFunction.

Also add PyCMethod_CheckExact() and PyCMethod_Check() for checks against the PyCMethod subtype.
Include/cpython/methodobject.h
Include/methodobject.h
Misc/NEWS.d/next/C API/2020-05-10-16-39-08.bpo-38787.XzQ59O.rst [new file with mode: 0644]
Objects/abstract.c
Python/ceval.c