Ensure python errors are propogated for Python->C++#3671
Conversation
|
Looks great, thanks Aaron! |
|
@rwgk We would need an example to trigger it easily. (Maybe a dummy caster just sets an error and then fails to load)? One of the tests could already be triggering it, but I would need to check the |
I played around a few minutes, adding Based on @Skylion007's comment, it seems to be quite a bit of trouble adding a test. I think it's fine to not invest the time, but it would be best to leave some low-key warning for people working on the code in the future. Here is a super simple idea: What do you think? |
Description
Suggested changelog entry:
* Propagate Python exception traceback using ``raise_from`` if a pybind11 function runs out of overloads.