How CPython Implements Cell (types.CellType) in C
Python’s cell – the object exposed as types.CellType and the thing that makes nonlocal (and closures) work – is implemented in CPython in Objects/cellobject.c as a tiny GC-tracked …
Python’s cell – the object exposed as types.CellType and the thing that makes nonlocal (and closures) work – is implemented in CPython in Objects/cellobject.c as a tiny GC-tracked …