Skip to content

Use positional-only parameters for some special methods #108635

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions