Frame objects — Python 3.14.7 documentation

docs.python.org

Tin mới

Python Module Index

3.14.7 Documentation

Python/C API reference manual

Concrete Objects Layer

Frame locals proxies¶

The C structure of the objects used to describe frame objects.

PyThreadState_GetFrame()

The C structure of the objects used to describe frame objects.

Frame locals proxies¶

The f_locals attribute on a frame object is an instance of a “frame-locals proxy”. The proxy object exposes a write-through view of the underlying locals dictionary for the frame. This ensures that the variables exposed

Legacy local variable APIs¶

These APIs are soft deprecated. As of Python 3.13, they do nothing. They exist solely for backwards compatibility.