~/talk

Python: From Source to Execution

Talkat PyData Fest Amsterdam 2020 · 2020-06-15..06-20· [python]
links:none on file
slides:none on file

Starts from a tiny snippet and traces concrete steps: the tokenizer produces tokens, the parser builds an AST, the compiler emits a code object with co_consts/co_code and name tables, and the assembler resolves jumps from a control flow graph into bytecode so the VM can run it. Demonstrations use compile() and the disassembler module on 1+2 showing the stack VM, about 150 opcodes, optimizer effects, and how frames provide the runtime environment.

AI-written summary · about

  1. 0:00Python internals intro
  2. 2:10Simple Python code
  3. 3:12Tokenizing source code
  4. 4:35Parsing tokens into an abstract syntax tree
  5. 9:07AST to bytecode
  6. 12:36Understanding bytecode
  7. 21:32Frame objects
  8. 23:39Core execution loop
  9. 25:48Summary
~/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.