How do I throw an exception class from C?

Brad Clements bkc at Murkworks.com
Wed Aug 11 12:52:39 EDT 1999


In my swig'd module  I can easily throw an exception string or tuple, but
how do I throw an exception class?

I want to create a new exception type that is a class, create a class object
with some init data, then set the exception for the current thread to that
object.

Easy in Python, hard in C. How do I do it?

Thanks,


--
Brad Clements,
bkc at murkworks.com






More information about the Python-list mailing list