Skip to main content

Module pystate

Module pystate 

Source
Available on neither Py_LIMITED_API nor RustPython.

Re-exportsยง

use crate::PyThreadState; ๐Ÿ”’
use crate::cpython::pyframe::_PyInterpreterFrame; ๐Ÿ”’ Py_3_11 and non-PyPy
use crate::PyFrameObject; ๐Ÿ”’
use crate::PyInterpreterState; ๐Ÿ”’
use crate::PyObject; ๐Ÿ”’
use core::ffi::c_int; ๐Ÿ”’

Constantsยง

PyTrace_CALL
PyTrace_C_CALL
PyTrace_C_EXCEPTION
PyTrace_C_RETURN
PyTrace_EXCEPTION
PyTrace_LINE
PyTrace_OPCODE
PyTrace_RETURN

Functionsยง

PyGILState_Checkโš 
PyInterpreterState_Headโš 
PyInterpreterState_Mainโš Non-PyPy
PyInterpreterState_Nextโš 
PyInterpreterState_ThreadHeadโš Non-PyPy
PyThreadState_DeleteCurrentโš 
PyThreadState_EnterTracingโš Py_3_11
PyThreadState_GetUncheckedโš Py_3_13
PyThreadState_LeaveTracingโš Py_3_11
PyThreadState_Nextโš Non-PyPy
_PyInterpreterState_GetEvalFrameFuncโš Py_3_11 and non-PyPy
_PyInterpreterState_SetEvalFrameFuncโš Non-PyPy

Type Aliasesยง

Py_tracefunc
_PyFrameEvalFunctionPy_3_11 and non-PyPy
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here