David E. Konerding DSD staff:
 |Randall Hopper wrote:
 |> Is there a clean way to save the full exception state in the callback
 |> before the PyGILState_Release(), and restore it when we return across the
 |> C++ wrapper?
...
 |I saved the exception state by retrieveing it from sys.exc_info(), which
 |contains all the traceback object data as Python variable.  I think you can
 |get the same info from your C++ callback wrapper, and use PyErr_Fetch and
 |PyErr_Restore to save and restore the exception sate.

Ok, thanks.  I'll give this a shot!

Randy
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to