Class PythonStateHolder

Class Documentation

class PythonStateHolder

Minimal holder to keep Python state objects alive in C++.

This class wraps a Python state object and delegates all operations to the underlying PyState trampoline. Its only purpose is to maintain the Python object’s lifetime.