Core Dump - Segmentation Fault -Newbie

phil lemelin phil.lemelin at gmail.com
Fri Jul 18 09:45:19 EDT 2008


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, <johnericaturnbull at yahoo.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080718/6013c64a/attachment-0001.html>


More information about the Python-list mailing list