Skip to content

Improve PyError_Clear calls #57

Description

@aaronj0

From discussion thread in #52:

I believe we need an api that makes an error ignorable (something like llvm::consumeError) where we annotate these functions that can be safe to be ignored. That is, we do something like IgnoreError(cpyrt_PyText_FromString...) where we make sure that we carry the accumulated error before this call and only remove the ones introduced by cpyrt_PyText_FromString

This would be a nice improvement on the current approach to clearing errors in the CPython extension.

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