~/talk

The Hidden Power of the Python Runtime

Talkat PyCon US 2020 · 2020-04-15..04-23· [python]
slides:none on file

Explains how to read the actual runtime facts: use sys._getframe and code objects to get names and file/line, read values from frame.f_locals and traceback objects, and attach tracing via sys.settrace or sys.setprofile to collect events. Shows concrete tools that use this — debuggers, line-coverage collectors like coverage.py, and runtime type collectors — and demos a simple deadlock tracer using threading.current_frames that prints real stacks and actually finds stuck threads.

AI-written summary · about

  1. 0:00Intro
  2. 1:03Test Frameworks
  3. 1:21Assertion Error
  4. 2:42Created Explicitly
  5. 2:58Python Objects
  6. 4:30Python Power
  7. 5:08Python Stack Frame
  8. 5:47Frame Object: Variables
  9. 6:44Code Object
  10. 8:21Previous Frame
  11. 9:41Contents
  12. 10:36Exception Object
  13. 10:55AssertionError Variables
  14. 11:56Usage
  15. 13:13Python Debugger
  16. 13:53Frame Evaluation
  17. 14:13More About Debuggers
  18. 14:26Access to Frame
  19. 14:42Debugger: Location
  20. 14:53Debugger: Variables
  21. 15:36Code Coverage
  22. 15:51coverage.py
  23. 16:53Typing Tools
  24. 17:56Acces To Frame
  25. 18:40Collecting Types
  26. 19:59Concurrent Execution
  27. 20:16Synchronisation
  28. 20:49Deadlock
  29. 22:08Thread States
  30. 22:33Thread Handler
  31. 23:23Async Locks
  32. 23:43Async Fault Handler
  33. 24:42Development Tools
  34. 25:17The Hidden Power of Runtime
  35. 25:35Inspiration
  36. 26:01Links
~/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.