Skip to main content

Module context

Module context 

Source
Available on neither Py_LIMITED_API nor RustPython.

Re-exportsยง

use crate::Py_IS_TYPE; ๐Ÿ”’
use crate::object::PyObject; ๐Ÿ”’
use crate::object::PyTypeObject; ๐Ÿ”’
use core::ffi::c_uint; ๐Ÿ”’ Py_3_14 and neither GraalPy nor PyPy
use core::ffi::c_char; ๐Ÿ”’
use core::ffi::c_int; ๐Ÿ”’

Constantsยง

Py_CONTEXT_SWITCHEDPy_3_14 and neither GraalPy nor PyPy

Staticsยง

PyContextToken_Typeโš 
PyContextVar_Typeโš 
PyContext_Typeโš 

Functionsยง

PyContextToken_CheckExactโš 
PyContextVar_CheckExactโš 
PyContextVar_Getโš 
PyContextVar_Newโš 
PyContextVar_Resetโš 
PyContextVar_Setโš 
PyContext_AddWatcherโš Py_3_14 and neither GraalPy nor PyPy
PyContext_CheckExactโš 
PyContext_ClearWatcherโš Py_3_14 and neither GraalPy nor PyPy
PyContext_Copyโš 
PyContext_CopyCurrentโš 
PyContext_Enterโš 
PyContext_Exitโš 
PyContext_Newโš 

Type Aliasesยง

PyContextEventPy_3_14 and neither GraalPy nor PyPy
PyContext_WatchCallbackPy_3_14 and neither GraalPy nor PyPy
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here