mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-08 23:39:12 +00:00
Prior to this commit throwing error_already_set was expensive due to the eager construction of the error string (which required traversing the Python stack). See #1853 for more context and an alternative take on the issue. Note that error_already_set no longer inherits from std::runtime_error because the latter has no default constructor.
6.6 KiB
6.6 KiB