STINNER Victor <victor.stin...@haypocalc.com> added the comment:

What do you call a "stack trace"? I use this term in the C language, especially 
when using the "where" command of gdb. In Python, the stack trace is called a 
"traceback". Anyway, faulthandler prints the Python trace, not the C trace, so 
I prefer to call it a "traceback" than "stack trace".

faulthandler.dump_traceback() output is similar to:

    try:
        raise ValueError()
    except:
        exctype, value, tb = sys.exc_info()
        traceback.print_tb(tb)

faulthandler doesn't print the line from the script, only the function name, 
file name and line number; and the first line is different.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12209>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to