We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.10.0
When i use the below reproducible example code, I can't catch the exception IndexError in Python that raise in C++. The log is:
IndexError
before exception Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)
m.def("test_exception", []() { std::cout << "before exception" << std::endl; PyErr_SetString(PyExc_IndexError, "Here is an IndexError"); throw py::error_already_set(); std::cout << "after exception" << std::endl; });
test_exception()
Not a regression
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.10.0
Problem description
When i use the below reproducible example code, I can't catch the exception
IndexError
in Python that raise in C++.The log is:
Reproducible example code
test_exception()
Is this a regression? Put the last known working version here if it is.
Not a regression
The text was updated successfully, but these errors were encountered: