Python Bytecode
https://realpython.com/ref/glossary/bytecode/
It’s kind of like assembly language, but it’s assembly for the Python virtual machine.
>>> import dis
>>> def greet(name):
... return f"Hello, {name}!"
...
>>> dis.dis(greet)
3 RESUME 0
4 LOAD_CONST 0 ('Hello, ')
LOAD_FAST_BORROW 0 (name)
FORMAT_SIMPLE
LOAD_CONST 1 ('!')
BUILD_STRING 3
RETURN_VALUELOAD_FAST x # load local variable x
LOAD_GLOBAL len # load global name len
STORE_FAST y # store into local variable y
C variable:
typed memory slot holding raw bits
Python variable:
name/slot holding a reference to a PyObject