Make the correct call specialization fail kind show up
#99770
Labels
type-bug
An unexpected behavior, bug, or error
call specialization fail kind show up
#99770
penguin-wwy commentedNov 25, 2022
•
edited by bedevere-bot
The
SPEC_FAIL_KINDis not displayed correctly due to not being adequately maintained.e.g
cpython/Python/specialize.c
Lines 1471 to 1482 in b1dcdef
According to the context,
METH_FASTCALL | METH_KEYWORDSflag does not cause specialization failure.However, the
method descrfail kind will also be shown asSPEC_FAIL_CALL_PYCFUNCTION, becausebuiltin_call_fail_kindfunction is called incorrectly in thespecialize_method_descriptorfunction.I'd like to submit a PR to fix them and make them display correctly.
Linked PRs
The text was updated successfully, but these errors were encountered: