Skip to content

C API functions with no return value cannot report errors #105184

Closed
@iritkatriel

Description

@iritkatriel

As discussed in capi-workgroup/problems#20, there are functions in the C API that do not have a way to report error (void return type).

Some of them actually set the error indicator in some cases, and the only way to know it to check PyErr_Occurred(). In other cases the functions currently do not have error cases, but the lack of return value is still a problem in case we want to evolve them in the future and need to report errors.

We will use this issue to fix the straightforward ones, while more complicated ones may spawn their own issues.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions