Python Internals Visualized
Interactive visual guide to Python internals, CPython execution, memory management, the GIL, and asyncio.
Designed by Gajanan Patil (@Gajanan48373486).
Course Modules
- 01. Execution & Memory: Lexer, AST Parser, Bytecode, PVM Eval loop, PyObjects, References, Generational Garbage Collection.
- 02. Core Data Structures: Dynamic Lists, Compact Hash Tables, Tuples, Sets, Comprehensions vs Generators.
- 03. Functions & Scope: Call Stack Frames, LEGB Scopes, Closures, Decorators, *args and **kwargs.
- 04. Object-Oriented Python: Instance __dict__, C3 MRO Linearization, super(), Dunder protocols, Descriptors.
- 05. Iteration & Laziness: Iterators, yield generator states, Context Managers (with).
- 06. Concurrency & Async: Global Interpreter Lock (GIL), Threading vs Multiprocessing, asyncio Event Loop.
- 07. Typing & Packaging: Type Hints, sys.path resolution, Virtual Environments.
- 08. Performance & Internals: __slots__ memory optimization, lru_cache memoization, cProfile.
Please enable JavaScript in your browser to interact with the animated diagrams, practice lab, and heap simulator.