naive question about tracebacks
Andrew Koenig
ark at research.att.com
Wed Feb 19 15:39:15 EST 2003
>>> def foo():
... bar()
...
>>> def bar():
... baz()
...
>>> foo()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "<stdin>", line 2, in foo
File "<stdin>", line 2, in bar
NameError: global name 'baz' is not defined
If the most recent call is last, why is it called a traceback
instead of a traceforward?
More generally, why is the most recent call last? Is it because
of the presumption that the earlier calls will scroll off the
top of the screen?
More information about the Python-list
mailing list