The PyException class contains no information about the source location (file:line) of the represented Python exception.
It at least leaves the exception in the interpreter, so I can query it from Python later, but for some applications, having this in the C++ exception is essential.
See this snippet for demonstration (or possibly as a starting point for a future regression test):
The
PyException
class contains no information about the source location (file:line
) of the represented Python exception. It at least leaves the exception in the interpreter, so I can query it from Python later, but for some applications, having this in the C++ exception is essential.See this snippet for demonstration (or possibly as a starting point for a future regression test):