Catching a segfault in a Python library

Paul Rubin http
Sat Nov 24 01:27:35 EST 2007


Donn Ingle <donn.ingle at gmail.com> writes:
> Okay, that's a good start. Thanks, I'll go for a python starts wxpython
> thing with os.wait() to sniff the outcome.

You may have to roll your own fork/exec to start the wxpython, instead
of using popen or the subprocess module.  I'm not terribly conversant
in those modules but they may start a shell which would isolate your
program from the wxpython exit code.



More information about the Python-list mailing list