Главная
Study mode:
on
1
Intro
2
Lexing - Tokenization
3
Parsing - Parser
4
AST (where actual hack begins)
5
Bytecode Generation
6
Evaluation
7
Walrus on Python 3.7
8
The Strategy For Hacking
9
Modifiying the Tokens
10
Modifying The Source
11
Creating decode function for Encoding
12
Adding a search function
13
Implementing Peps (Example PEP313)
14
Scoping
15
Runtime
16
Rusty Return
17
Transforming AST (2)
18
Poophole Optimizer
19
Optimize Function
20
Optimizers 2 (Example Elem Local Vars)
21
Catlizor v1-extended
22
Hooking
Description:
Explore the dynamic nature of CPython and learn advanced hacking techniques in this 17-minute EuroPython Conference talk. Delve into the interpreter's internals step-by-step, from adding new syntax to modifying the evaluation loop. Discover how to manipulate AST, bytecode, CTypes, and the CPython evaluation loop. Gain insights into disassembling and reassembling bytecode, adding custom statements, and implementing runtime syntax modifications. Cover topics such as lexing, parsing, AST manipulation, bytecode generation, and evaluation. Learn practical hacks like modifying tokens, creating custom decode functions, implementing PEPs, and optimizing code execution. Uncover the potential for extending Python's capabilities through advanced interpreter manipulation techniques.

Hack the CPython

EuroPython Conference
Add to list
0:00 / 0:00