Under the Hood
Loading visualizer…
DNSresolving host
TCPconnecting
TLShandshake
HTTPrequesting
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Under the Hood
Loading visualizer…
Source → Tokens → AST → Bytecode → CPython VM → Memory Model → GIL
Source file
Token stream — 0 tokens
The Python interpreter's first step is the lexer (tokenizer). It reads the raw .py file as a stream of characters and groups them into tokens — the vocabulary of the language. No structure is understood yet; the lexer only recognizes individual words and symbols.
Pipeline
Example
What is Python's intermediate representation between source code and the interpreter?