[issue39884] "SystemError: bad call flags" exceptions added as part of BPO-33012 are difficult to debug

2020-03-12 Thread STINNER Victor
STINNER Victor added the comment: > While the issues definitely need to be resolved in the C extensions, where to > start is not completely clear. I had to put `printfs` in PyCFunction_NewEx > and PyDescr_NewMethod to track down the issues, e.g., (...) I agree, I had the same issue :-) I

[issue39884] "SystemError: bad call flags" exceptions added as part of BPO-33012 are difficult to debug

2020-03-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6a12676b1910d52c85561bdf4f1e20aa13fc8f46 by Victor Stinner in branch '3.7': bpo-39884: Add method name in "bad call flags" error (GH-18944) (GH-18957) https://github.com/python/cpython/commit/6a12676b1910d52c85561bdf4f1e20aa13fc8f46

[issue39884] "SystemError: bad call flags" exceptions added as part of BPO-33012 are difficult to debug

2020-03-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 03ac090c5f8d5b281e56c5f5431c1754fd4efe5c by Victor Stinner in branch '3.8': bpo-39884: Add method name in "bad call flags" error (GH-18944) (GH-18956) https://github.com/python/cpython/commit/03ac090c5f8d5b281e56c5f5431c1754fd4efe5c

[issue39884] "SystemError: bad call flags" exceptions added as part of BPO-33012 are difficult to debug

2020-03-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18308 pull_request: https://github.com/python/cpython/pull/18957 ___ Python tracker ___

[issue39884] "SystemError: bad call flags" exceptions added as part of BPO-33012 are difficult to debug

2020-03-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18307 pull_request: https://github.com/python/cpython/pull/18956 ___ Python tracker ___

[issue39884] "SystemError: bad call flags" exceptions added as part of BPO-33012 are difficult to debug

2020-03-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset c7d2d69d95b263ee5f83511bc6fbe53acdc24ea3 by Victor Stinner in branch 'master': bpo-39884: Add method name in "bad call flags" error (GH-18944) https://github.com/python/cpython/commit/c7d2d69d95b263ee5f83511bc6fbe53acdc24ea3 --

[issue39884] "SystemError: bad call flags" exceptions added as part of BPO-33012 are difficult to debug

2020-03-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch nosy: +vstinner nosy_count: 1.0 -> 2.0 pull_requests: +18298 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18944 ___ Python tracker

[issue39884] "SystemError: bad call flags" exceptions added as part of BPO-33012 are difficult to debug

2020-03-06 Thread Enji Cooper
New submission from Enji Cooper : When a body of C extensions needs to be ported from python <3.8 to 3.8, one of the issues one might run into is improperly defined methods in a C extension, which results in SystemErrors stating: >>> SystemError: bad call flags This new behavior was added