Making Python better one error message at a time
summary
The project ships concrete improvements: Python 3.10 adds dozens of clearer syntax messages (missing colon, missing comma, unclosed brackets) and runtime name/attribute suggestions using a Levenshtein-style word distance; Python 3.11 adds fine‑grained traceback positions from PEP 657 so the exact subexpression is highlighted. A new PEG parser enables these diagnostics but requires memoization to avoid exponential parse time; suggestion code runs only when an exception reaches printing, so normal code keeps full performance.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:57Syntax Editor
- 5:06Perk Parser
- 9:24Missing comma
- 14:27Runtime suggestions
- 18:50Better traceback
- 22:35How to help
related talks
25mNotes, Groups and Stars: exceptional new features of Python 3.11!
29mPython Type hints and how they can supercharge CS education.
37mKeynote 1: What's New in Python
15mExploring the Latest Features of Python 3.12
19mThe Journey of Upgrading A Python Version: From a Debugger Perspective
43mPython 3: ten years later
35mHow you can benefit from type hints
31mIntroduce Syntax and History of Python from 2.4 to 3.6
