sys.exit() doesn't exit
Randall Hopper
aa8vb at yahoo.com
Wed Oct 20 09:32:06 EDT 1999
Fredrik Lundh:
|Randall Hopper <aa8vb at yahoo.com> wrote:
|>
|> The wrapped C code doesn't know about Python so propagating exceptions
|> through it really isn't practical. I guess the best I can do is propagate
|> them across it.
|>
|> Fortunately, in this particular C wrapper, there are only two C entry
|> points inside which a Python callback might be invoked, so I can use
|> static-wrapper-variable-hackery to record when exceptions occur,
...
|
|hint: use PyErr_Occurred() to figure out
|if an error occurred down below...
Thank you! That's just what I need.
--
Randall Hopper
aa8vb at yahoo.com
More information about the Python-list
mailing list