Exploring Python Bytecode

July 22, 2016 09:21

EuroPython 2016

Do you ever wonder how your Python code looks to the interpreter? What those .pyc files are? Why one program outperforms another, even if the code is similar? Then let’s dive into Python bytecode! Bytecode is the "intermediate language" that expresses your source code as machine instructions the interpreter can understand. In this talk we’ll see what role it plays in executing Python programs, learn to read it with the dis module, and analyze it to better understand a program’s performance.



Anjana Sofia Vakil


more decks of the speaker