Skip to content

Argument Clinic generates incorrect code for METH_METHOD methods without args #115015

Closed
@erlend-aasland

Description

@erlend-aasland

Bug report

Argument Clinic generates incorrect code for methods without arguments, that need the defining class (METH_METHOD). Currently, only positional arguments are checked; any keyword argument is silently accepted. This affects methods in several extension modules (see PR).

See also a055dac.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only security fixes3.11only security fixes3.12only security fixes3.13bugs and security fixesextension-modulesC modules in the Modules dirtopic-argument-clinictype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions