// The 2nd error could be conditional in a real application. py::set_error(PyExc_RuntimeError, "2nd error."); } // Here the 1st error is destroyed before the 2nd ...