Intro to Introspection
summary
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
chapters (19)
- 0:00Intro
- 0:36Overview
- 1:24Help
- 1:49Pickle
- 5:10Print
- 5:38Wrapper
- 7:02Help Output
- 7:46Classes
- 8:32Function
- 9:49Covar Names
- 10:14Defaults
- 11:13Inspect
- 12:49Type
- 13:52Callable
- 14:32Inheritance
- 15:06Abstract Based Classes
- 17:17Vars
- 19:49GetAdder
- 20:19Conclusion
related talks
22mLow Level Python a Deep dive into the python sources
28mFunction dissection lab -- learn how functions
35mPythonic Interfaces The secret to building maintainable, quality code
27mThe Hidden Power of the Python Runtime
24m"A Confession of My Python Sins"
31mUnderstanding Python from the inside: C concepts to dive into CPython fearless
01h 18mPython 103: Mmmm... Understanding Python's Memory Model, Mutability, and Methods
31mLife Under the A Guide to Python's Internal Conventions
