~/talk

Guardrails: An Alternative View of Safely Working in Python

Talkat PyCon AU 2025 · 2025-09-12..09-16· [python, security]
slides:none on file

Argues that Python evolves guardrails—language features that constrain unsafe machinery and make correct use easier—by showing concrete replacements and tools: with statement replaces error-prone try/finally for resource lifecycles, async/await replaces generator-based coroutines to make suspension points explicit, decorators signal risk while protocols and type hints encode contracts, and returning result-like unions reduces unpredictable exceptions. Uses examples (Armco barrier analogy, historical race incidents) and shows how immutability and typed contracts let tools verify safety rather than relying on brittle docs and tests.

AI-written summary · about

  1. 0:00Welcome
  2. 1:06F1 circuits history
  3. 5:45C's influence on programming
  4. 8:09Safe Python challenges
  5. 10:54Testing limits
  6. 12:22Need for guardrails
  7. 13:26Python's guardrail evolution
  8. 13:48Context managers
  9. 16:55Async guardrails
  10. 18:41Decorator risks
  11. 20:46Immutable data
  12. 22:54Static typing & protocols
  13. 24:38Exception limits
  14. 26:21Result types
  15. 28:07Guardrail features summary
  16. 29:10Verifiable structure benefits
  17. 30:16Conclusion
~/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.