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.
From discussion thread in #52:
This would be a nice improvement on the current approach to clearing errors in the CPython extension.