Improved exception diagnostics in Python 3.11

In large programs, it is difficult to understand from the printout of the call stack where exactly the error occurred in the code. Especially if complex expressions are used. Python 3.11 introduced detailed diagnostic information in the call stack printout. Let's look at a few examples.

Reliable Python

Join the culture of reliable Python programming! News, events, opinions, updates of Python libraries on one site.