Bentley4
Bentley4

Reputation: 11028

Traceback headers: "most recent call last" vs "innermost last"

Could anyone explain when a runtime error would generate a traceback with header most recent call last and when it would generate the header innermost last?

Upvotes: 2

Views: 1566

Answers (1)

lvc
lvc

Reputation: 35059

The two terms are synonyms, so there's no apparent reason why the interpreter might give both of them alternatively. It seems like CPython, at least, used to always use "innermost last", and now always uses "most recent call last" - eg, the Python 2.0 Tutorial uses "innermost", but this changed to "most recent" in the same example from the Python 2.1 Tutorial. I can't find any stated reason for the change (it isn't mentioned in the Python 2.1 Release Notes), but it seems likely that the devs just thought the new wording clearer.

Upvotes: 4

Related Questions