]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39884: Add method name in "bad call flags" error (GH-18944) (GH-18956)
authorVictor Stinner <vstinner@python.org>
Thu, 12 Mar 2020 12:37:02 +0000 (13:37 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2020 12:37:02 +0000 (13:37 +0100)
commit03ac090c5f8d5b281e56c5f5431c1754fd4efe5c
tree0c01c246519bbc28b590cacd2115434fc6e2a44e
parentab9c72912178cfdb4d0637be036d78913b769154
bpo-39884: Add method name in "bad call flags" error (GH-18944) (GH-18956)

PyDescr_NewMethod() and PyCFunction_NewEx() now include the method
name in the SystemError "bad call flags" error message to ease debug.

(cherry picked from commit c7d2d69d95b263ee5f83511bc6fbe53acdc24ea3)
Misc/NEWS.d/next/C API/2020-03-12-00-27-26.bpo-39884.CGOJBO.rst [new file with mode: 0644]
Objects/descrobject.c
Objects/methodobject.c