Sorry, something went wrong.
| exctype = PyExc_RuntimeError; | ||
| } | ||
|
|
||
| _Py_excinfo_Apply(&self->info, exctype); |
There was a problem hiding this comment.
Where is this function defined?
Sorry, something went wrong.
There was a problem hiding this comment.
In Python/errors.c.
Sorry, something went wrong.
There was a problem hiding this comment.
Ah I see, I needed to refresh my branch.
This looks like a DIY serialisation of exceptions. Does it work for all exception types? What if the args to the exception constructor are not just the msg string?
Sorry, something went wrong.
This will be used by _xxsubinterpretersmodule.c in a follow-up PR, though it should have utility on its own.