What is the difference between a traceback and a stack trace?

Responsive Ad Header

Question

Grade: Education Subject: Support
What is the difference between a traceback and a stack trace?
Asked by:
61 Viewed 61 Answers
Responsive Ad After Question

Answer (61)

Best Answer
(286)
The terms 'traceback' and 'stack trace' are often used interchangeably in Python. A stack trace is a more general term referring to the list of function calls on the call stack at a given point in time. A traceback is specifically the stack trace generated when an exception is raised.