~/talk

Guardrails An alternative view of safely working in Python

Talkat PyBay 2025 · on Saturday, 2025-10-18· [python, software-architecture]
slides:none on file

Argues that Python shifts from raw power to safety by adding guardrails that reveal structure and make errors predictable. Cites concrete features: contextlib.contextmanager and the with statement enforce resource cleanup; async/await restricts awaiting to an event loop; decorators flag runtime semantic changes; static typing with typing.Protocol and immutables prevent unintended mutation; and using a Union[Success, Error] result type makes type checkers force explicit error handling. Shows these tools reduce defensive plumbing and make tests and docs more focused.

AI-written summary · about

  1. 0:00Introduction
  2. 3:41Programming and C's legacy
  3. 7:51Limitations of traditional testing
  4. 9:57What are guardrails?
  5. 11:01Python's guardrail features
  6. 11:21With statement as guardrail
  7. 14:28Async functions as guardrails
  8. 16:12Decorators and risk
  9. 17:36Type hints for structure
  10. 18:39Building your own guardrails
  11. 19:02Immutable data structures
  12. 20:47Static typing and protocols
  13. 22:11Handling error states
  14. 23:55Result types in Python
  15. 26:00Python's evolving structure
  16. 27:48Future of guardrails in Python
  17. 28:13Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.