~/talk

Intro to Introspection

Talkat PyCon US 2022 · 2022-04-27..05-03· [python]
links:none on file
slides:none on file

Claims that Python has ~70 built-in introspection helpers and that about 15 get used here to reconstruct what help prints, showing where names, docs and files live in __name__ __doc__ and __file__, how printing relies on __str__ vs __repr__, how function parameters sit in __code__.co_varnames with defaults and annotations, and when to prefer higher-level utilities like inspect.getmembers over poking dunders directly.

AI-written summary · about

  1. 0:00Intro
  2. 0:36Overview
  3. 1:24Help
  4. 1:49Pickle
  5. 5:10Print
  6. 5:38Wrapper
  7. 7:02Help Output
  8. 7:46Classes
  9. 8:32Function
  10. 9:49Covar Names
  11. 10:14Defaults
  12. 11:13Inspect
  13. 12:49Type
  14. 13:52Callable
  15. 14:32Inheritance
  16. 15:06Abstract Based Classes
  17. 17:17Vars
  18. 19:49GetAdder
  19. 20:19Conclusion
~/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.