Skip to content

Use positional-only parameters for some special methods #108635

@serhiy-storchaka

Description

@serhiy-storchaka

Feature or enhancement

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Proposal:

Most special methods (double underscored from both sizes) are only called with positional arguments. But some implementations forgot to add / in Argument Clinic description. It makes the code unnecessary complex and prevent using the efficient limited C API for it (Argument Clinic does not yet fully support the limited C API for keyword parameters).

We can just add missed /. No deprecation period is needed as these functions were not purposed to be used with keyword arguments.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions