Skip to content

Remove redundant check on varargs in _PyArg_CheckPositional #129594

Open
@eendebakpt

Description

@eendebakpt

Bug report

Bug description:

The condition !_Py_ANY_VARARGS(max) checked in the macro _PyArg_CheckPositional (file Include/internal/modsupport.h) is not used in the method _PyArg_CheckPositional (file getargs.c). Removing the check saves a (very) small bit of time in the often used _PyArg_CheckPositional.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions