Главная
Study mode:
on
1
Intro
2
Sebastiaan Zeeff
3
From source code to execution
4
Adding a new binary operator: A pipe operator
5
Tokenization: from raw text to a stream of tokens
6
Tokenization: Add a token for the operator
7
Python's Grammar & the PEG Parser
8
Implementing our new grammar rule
9
Regenerate the parser based on the new grammar
10
Part 2: From Abstract Syntax Tree to Magic (Execution) Part 2
11
Making the compiler use the new 'opcode File: Python/compilec
12
Part 2: We've got Bytecode!
13
Recap & Remarks
Description:
Dive into CPython's internals by implementing a new pipe operator in this PyCon US talk. Explore the CPython source code, learning about Python's grammar, syntax trees, and core language features. Follow along as the speaker obtains the source code, regenerates parser and token files, and compiles a modified version of CPython. Gain insights into writing and running tests for implementation changes. Suitable for those interested in exploring CPython internals, with some Python knowledge helpful but not required. Basic C programming is used, but prior experience is unnecessary. Acquire a mental framework to aid in understanding more comprehensive resources like the Python Developer's Guide.

Demystifying Python's Internals - Diving into CPython by Implementing a New Operator

PyCon US
Add to list
0:00 / 0:00