Skip to content

Expose PyCFunctionFast and PyCFunctionFastWithKeywords in limited API #11

@encukou

Description

@encukou

The names _PyCFunctionFast and _PyCFunctionFastWithKeywords, function types needed with the METH_FASTCALL convention (which is part of limited API), are currently prefixed by underscores. So, the types essentially are part of the stable ABI, but since the names aren't needed to define the functions, they were left out.
Found in PyO3 -- turns out Rust is more strict about what gets called :)

Exposing them is a limited API change, so it might need a WG vote. I hope it's a no-brainer, but I do have a follow-up proposal that might be more controversial.


These should be properly added to the limited API, with leading underscores removed (PR: #114627):

and if so: The old names should be kept as aliases for backwards compatibility, until the fully-public API is changed/removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions