Skip to content

Convert type check macro's to functions on the limited api #105

@bschoenmaeckers

Description

@bschoenmaeckers

As discussed at https://discuss.python.org/t/c-api-add-py-getbuildintype-and-py-getbuildintypeborrowed/107010/12.

It is desirable for alternative Python implementations to avoid using static exported type objects. Their primary usage is in type checking macros, so I propose converting them to exported functions instead.

See python/cpython#149558 for a draft to convert PyBool_Check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions