Traceback (most recent call last): Python's tracebacks explained

Опубликовано: 29 Октябрь 2024
на канале: Python Morsels
9,079
51

When exceptions go unhandled, Python prints a traceback. Tracebacks are read from the bottom upward*. The last line describes *what happened and lines above describe where it happened.

Read an article version of this video at https://pym.dev/reading-tracebacks-in...

Find more Python screencasts at https://pym.dev/screencasts/

00:00 Traceback (most recent call last)?
00:25 Read the last line in a traceback first
01:17 The lines in a traceback represent frames in the "call stack"
02:11 Reading up the call stack to fix the bug
02:58 Read your tracebacks from the bottom upward

#python #exception #exceptions