Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make the correctcall specialization fail kind show up #99770

Closed
Labels
type-bugAn unexpected behavior, bug, or error
@penguin-wwy

Description

@penguin-wwy

TheSPEC_FAIL_KIND is not displayed correctly due to not being adequately maintained.
e.g

#ifdefPy_STATS
staticint
builtin_call_fail_kind(intml_flags)
{
switch (ml_flags& (METH_VARARGS |METH_FASTCALL |METH_NOARGS |METH_O |
METH_KEYWORDS |METH_METHOD)) {
caseMETH_VARARGS:
returnSPEC_FAIL_CALL_PYCFUNCTION;
caseMETH_VARARGS |METH_KEYWORDS:
returnSPEC_FAIL_CALL_PYCFUNCTION_WITH_KEYWORDS;
caseMETH_FASTCALL |METH_KEYWORDS:
returnSPEC_FAIL_CALL_PYCFUNCTION_FAST_WITH_KEYWORDS;

According to the context,METH_FASTCALL | METH_KEYWORDS flag does not cause specialization failure.
However, themethod descr fail kind will also be shown asSPEC_FAIL_CALL_PYCFUNCTION, becausebuiltin_call_fail_kind function is called incorrectly in thespecialize_method_descriptor function.

I'd like to submit a PR to fix them and make them display correctly.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp