Exploring CPython's Bytecode
Offered By: EuroPython Conference via YouTube
Course Description
Overview
Syllabus
Intro
Unravelling Bytecode
Python: Compiler & VM
Python overview
Example Module
Executing the Bytecode
Optimisation
Structure of .pyc Files
Magic Number
Timestamp
Code Object Marshal module
Back to the Compiler Compile your own code object
Code Objects It's documented: Data model (Language Reference) Everything which is executed becomes a code
sum Code Object
Disassembler
First Taste of Bytecode (2) LOAD FAST
First Model of the VM
Reading Bytecode
Bytecode Arguments dis HAVE ARGUMENT = 90
First Eval Loop
Passing Arguments
Handling Bytecodes
LOAD FAST LOAD CONST
BINARY MULTIPLY
BINARY ADD
RETURN VALUE
The VM So Far
Disassembling the Module
STORE NAME LOAD NAME
CALL FUNCTION (2)
POP JUMP_IF_FALSE
JUMP FORWARD . POP TOP
Incomplete
EXTENDED ARG
Abusing Bytecode
The Tools
Improve Tracing
Questions
Taught by
EuroPython Conference
Related Courses
A Brief History of Data StorageEuroPython Conference via YouTube Breaking the Stereotype - Evolution & Persistence of Gender Bias in Tech
EuroPython Conference via YouTube We Can Get More from Spatial, GIS, and Public Domain Datasets
EuroPython Conference via YouTube Using NLP to Detect Knots in Protein Structures
EuroPython Conference via YouTube The Challenges of Doing Infra-As-Code Without "The Cloud"
EuroPython Conference via YouTube