I would suggest importing traceback.
import traceback try : mystuff except : print str(traceback.format_exc()) But in the case of a SegFault or core dump, it might not help you at all. Can you post part of the function ? On Fri, Jul 18, 2008 at 9:25 AM, <[EMAIL PROTECTED]> wrote: > Hi - I am very new to python. I get this random core dump and am > looking for a good way to catch the error. I know the function my core > dump occurs. Is there any error catching/handling that I could use in > python? > -- > http://mail.python.org/mailman/listinfo/python-list > -- Philippe-Alexandre Lemelin
-- http://mail.python.org/mailman/listinfo/python-list