Download include/python3.11/internal/pycore_context.h from michaelu0826/phantom_env: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/include/python3.11/internal/pycore_context.h
- Command line
-
hf download hf://datasets/michaelu0826/phantom_env/include/python3.11/internal/pycore_context.h
-
curl -L -o pycore_context.h https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/include/python3.11/internal/pycore_context.h
1.24 kB
| extern PyTypeObject _PyContextTokenMissing_Type; | |
| /* runtime lifecycle */ | |
| PyStatus _PyContext_Init(PyInterpreterState *); | |
| void _PyContext_Fini(PyInterpreterState *); | |
| /* other API */ | |
| // without freelists | |
| struct _Py_context_state { | |
| // List of free PyContext objects | |
| PyContext *freelist; | |
| int numfree; | |
| }; | |
| struct _pycontextobject { | |
| PyObject_HEAD | |
| PyContext *ctx_prev; | |
| PyHamtObject *ctx_vars; | |
| PyObject *ctx_weakreflist; | |
| int ctx_entered; | |
| }; | |
| struct _pycontextvarobject { | |
| PyObject_HEAD | |
| PyObject *var_name; | |
| PyObject *var_default; | |
| PyObject *var_cached; | |
| uint64_t var_cached_tsid; | |
| uint64_t var_cached_tsver; | |
| Py_hash_t var_hash; | |
| }; | |
| struct _pycontexttokenobject { | |
| PyObject_HEAD | |
| PyContext *tok_ctx; | |
| PyContextVar *tok_var; | |
| PyObject *tok_oldval; | |
| int tok_used; | |
| }; | |