Overview
Explore the intricacies of Python bytecode in this 51-minute conference talk from EuroPython 2013. Dive into the world of opcodes, stack machines, and variable types as the speaker unravels the complexities of Python's internal workings. Learn about function defaults, line numbers, and how classes function as callables. Discover the differences between readable and hand-coded bytecode, and compare the Maynard and gunk approaches to class disassembly. Gain insights into building a simple virtual machine and access valuable resources for further exploration of Python bytecode.
Syllabus
Introduction
What is Bytecode?
Opcodes and HAVE_ARGUMENT
Stack Machine Part 1
Bytecode Variable Types
Data And Metadata, Part 1
Function Defaults
Line Numbers
Classes Are Callables, Part 2
Readable & Hand-Coded, Part 2
Maynard vs. gunk
Class Disassembly With Maynard
The Simplest Possible VM, Part 2
Resources
Taught by
EuroPython Conference