Bytecodes and stacks: A look at CPython’s compiler and its execution model


Follow to receive video recommendations   a   A

So, you wrote some Python code. What needs to happen before it starts running? And once it's running, how does Python keep track of what it's doing? I'll talk about CPython's tokenization, parsing, bytecode and its serialization and cache, the stack-based virtual machine, line number tables, and code, frame and function objects. Don't worry if you've never heard of these concepts. While even experts should learn something new, the talk is aimed at anyone who's worked on a Python project or two.

Editors Note:

If you like this website, please upvote my Awesome Python pull request.