CPyCppyy icon indicating copy to clipboard operation
CPyCppyy copied to clipboard

Enable using cppyy with debug build of Python

Open Vipul-Cariappa opened this issue 6 months ago • 1 comments

The changes here collects residual exceptions thrown by Python, before calling into Python C API.

Reference: https://github.com/root-project/root/pull/19239

Vipul-Cariappa avatar Jul 01 '25 08:07 Vipul-Cariappa

I really don't think straight-up sprinkling PyErr_Clear() b/c the "might" be an error is a good idea. Presumably, the error is there for a reason and even if it's only in debug builds, the error should be handled/collected close to its source.

wlav avatar Jul 03 '25 17:07 wlav