~/talk

Guardrails: An Alternative View of Safely Working in Python

Talkat PyOhio 2025 · 2025-07-26..07-27· [python, software-architecture]
slides:none on file

Argues that Python steadily adds structural guardrails that make unsafe patterns discoverable and prevent common bugs, showing concrete replacements: file handling with context managers instead of ad‑hoc try/finally, true async/await instead of generator-based coroutines, decorators to flag runtime semantic changes, and typing protocols plus immutable datatypes and resultlike unions to encode and verify contracts so callers and type checkers can catch mutation and error cases before runtime.

AI-written summary · about

  1. 0:00Guardrails in Python
  2. 1:05Racing guardrails history
  3. 5:23From racing to programming safety
  4. 9:19Python safety challenges
  5. 12:07Program guardrails
  6. 13:09Python guardrails: with statement
  7. 16:17Python guardrails: async functions
  8. 18:21Python guardrails: decorators and type hints
  9. 20:29Custom guardrails in code
  10. 24:00Error handling with result types
  11. 27:50Guardrails benefits in Python
  12. 29:14Conclusion and Q&A
~/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.