Peter Hawkins
44596bc4ee
Fix exception handling when pybind11::weakref() fails. ( #3739 )
...
* Clear Python error state if pybind11::weakref() fails.
The weakref() constructor calls pybind11_fail() without clearing any
Python interpreter error state. If a client catches the C++ exception
thrown by pybind11_fail(), the Python interpreter will be left in an
error state.
* Add test case for failing to create weakref
* Add Debug asserts for pybind11 fail
* Make error handling more pythonic
* Does this fix PyPy?
* Adapt test to PyPy differences
* Simplify test to remove redundancy
Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
2022-02-18 14:12:00 -05:00
..
2022-02-15 00:32:58 -05:00
2022-02-11 19:06:16 -05:00
2022-02-11 19:06:16 -05:00
2022-02-10 18:28:08 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 12:17:07 -08:00
2022-02-14 11:36:22 -08:00
2022-02-11 19:06:16 -05:00
2022-02-15 00:32:58 -05:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 18:28:08 -08:00
2022-02-11 19:06:16 -05:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-11 19:06:16 -05:00
2022-02-10 12:17:07 -08:00
2022-02-11 19:06:16 -05:00
2022-02-14 11:36:22 -08:00
2022-02-10 18:28:08 -08:00
2022-02-14 11:36:22 -08:00
2022-02-10 18:28:08 -08:00
2022-02-14 11:36:22 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2021-09-24 12:08:22 -07:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-14 11:36:22 -08:00
2022-02-11 19:06:16 -05:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-11 19:06:16 -05:00
2022-02-14 11:36:22 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-14 11:36:22 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-11 19:06:16 -05:00
2022-02-10 12:17:07 -08:00
2022-02-11 19:06:16 -05:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-11 19:06:16 -05:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-15 11:51:17 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 18:28:08 -08:00
2022-02-18 14:12:00 -05:00
2022-02-11 10:42:48 -05:00
2022-02-11 19:06:16 -05:00
2022-02-14 11:36:22 -08:00
2022-02-11 19:06:16 -05:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-14 11:36:22 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2019-06-11 23:28:58 +02:00
2022-02-10 18:28:08 -08:00
2022-02-14 11:36:22 -08:00
2022-02-11 19:06:16 -05:00
2021-07-04 19:58:35 -04:00
2021-01-31 17:29:09 -05:00