Skip to content

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

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.

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

    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