<p>Inside of you there are two stacks. Actually, there’s three. The system-level call stack, the CPython call stack, and the interpreter’s evaluation stack. What is all that about? Today we’ll talk about how synchronous Python function calls work. Async stuff comes next time!</p><p><br></p><p>## Timestamps</p><p><br></p><p>Here you go — all square brackets changed to parentheses:</p><p>(00:00:00) INTRO<br>(00:02:28) PART 1: CALLING THINGS<br>(00:04:19) The Lawful Good Language<br>(00:13:18) Why is there a call stack?<br>(00:19:45) Python functions are not tied to the system call stack<br>(00:23:22) What&#39;s in a Python frame?<br>(00:23:35) Execution book-keeping data<br>(00:24:21) Locals<br>(00:27:35) The interpreter evaluation stack<br>(00:28:34) What are register-based interpreters?<br>(00:36:33) Interpretation using the evaluation stack<br>(00:42:46) Executing a function<br>(00:45:37) How do exceptions fit into the execution model?<br>(01:05:51) PART 2: PR OF THE WEEK<br>(01:15:48) PART 3: DONATE.PYTHON.ORG<br>(01:17:21) PART 4: WHAT&#39;S GOING ON IN CPYTHON<br>(01:27:59) Free threading changes<br>(01:38:16) Performance<br>(01:51:08) Bugfixes<br>(02:04:03) OUTRO</p>

core.py

Pablo Galindo and Łukasz Langa

Calling Things, Part 1

DEC 7, 2025125 MIN
core.py

Calling Things, Part 1

DEC 7, 2025125 MIN

Description

<p>Inside of you there are two stacks. Actually, there’s three. The system-level call stack, the CPython call stack, and the interpreter’s evaluation stack. What is all that about? Today we’ll talk about how synchronous Python function calls work. Async stuff comes next time!</p><p><br></p><p>## Timestamps</p><p><br></p><p>Here you go — all square brackets changed to parentheses:</p><p>(00:00:00) INTRO<br>(00:02:28) PART 1: CALLING THINGS<br>(00:04:19) The Lawful Good Language<br>(00:13:18) Why is there a call stack?<br>(00:19:45) Python functions are not tied to the system call stack<br>(00:23:22) What&#39;s in a Python frame?<br>(00:23:35) Execution book-keeping data<br>(00:24:21) Locals<br>(00:27:35) The interpreter evaluation stack<br>(00:28:34) What are register-based interpreters?<br>(00:36:33) Interpretation using the evaluation stack<br>(00:42:46) Executing a function<br>(00:45:37) How do exceptions fit into the execution model?<br>(01:05:51) PART 2: PR OF THE WEEK<br>(01:15:48) PART 3: DONATE.PYTHON.ORG<br>(01:17:21) PART 4: WHAT&#39;S GOING ON IN CPYTHON<br>(01:27:59) Free threading changes<br>(01:38:16) Performance<br>(01:51:08) Bugfixes<br>(02:04:03) OUTRO</p>