dependant... So, at least on unix-like
platform, you can use the signal module to detect segfault:
import signal
def handler(signum, frame):
print 'Segfault detected'
# you may use the stack frame here to help debugging
signal.signal(signal.SIGSEGV, handler)
--
Thomas SAMSO
in genetic algorithms, but here are
some links :
http://pygp.sourceforge.net/
http://packages.qa.debian.org/g/genetic.html
and of course,
http://www.freenet.org.nz/python/pygene/
--
Thomas Samson
BOFH Excuse #420:
Feature was not beta tested
--
http://mail.python.org/mailman/listinfo/python-list