~/talk

Making Python better one error message at a time

Talkat PyCon US 2022 · 2022-04-27..05-03· [python]
slides:none on file

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

  1. 0:00Introduction
  2. 1:57Syntax Editor
  3. 5:06Perk Parser
  4. 9:24Missing comma
  5. 14:27Runtime suggestions
  6. 18:50Better traceback
  7. 22:35How to help
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.