But... How Does Python Work?
summary
An explanation of what happens internally when running Python code, focusing on the standard implementation (CPython). Covers the execution steps behind a simple program — parsing, bytecode, the interpreter loop and related internals — to show how Python actually works under the hood.
AI-written summary · about
chapters (26)
- 0:00Introduction
- 1:09Speaker background
- 2:35Python inspiration
- 4:02Python implementations
- 5:47Python source code
- 7:31Breathing exercise
- 8:12Python vs C basics
- 10:19Simple Python code
- 11:24Python execution flow
- 13:30Five execution steps
- 14:13Decoding and tokenization
- 14:56Parsing and AST
- 17:03Compilation and bytecode
- 17:45CPython internals
- 19:48Frame objects
- 21:36Generic structures
- 22:18Hidden methods
- 23:22Lists and methods
- 25:16Unexpected features
- 26:19Python 3.10 errors
- 27:42Fun features
- 28:24Reference counting
- 30:08Object lifecycle
- 31:52Extending Python
- 32:54Explore internals
- 33:36Q&A
