~/talk

Python 3.12's new monitoring and debugging API

Talkat PyData Paris 2024 · 2024-09-25..09-26· [python]
slides:none on file

Python 3.12 exposes PEP 669 low‑impact monitoring that registers callbacks in the mon namespace, enables events per function and per thread, and patches bytecode at load time so debuggers avoid instrumenting every function. Benchmarks show the old sys.settrace path runs 3–5× slower while the new monitoring path adds about 20% overhead in the basic case. Demonstrations include a tiny debugger prototype (six lines plus frame inspection), works with VS Code/PyCharm adapters, and pdb has not switched yet.

AI-written summary · about

  1. 0:00Debugging and Python's history
  2. 5:53Traditional debugging limits
  3. 9:02Debugging tools evolution
  4. 14:42Python 3.12 monitoring API
  5. 21:01Debugger with new API
  6. 23:12New API performance impact
  7. 25:19Monitoring API adoption
  8. 26:23Q&A on bytecode & eBPF
~/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.