PyThreadState

_

extern (C)
struct PyThreadState {}

Members

Variables

async_exc
PyObject* async_exc;

Asynchronous exception to raise

async_gen_finalizer
PyObject* async_gen_finalizer;
Undocumented in source.
async_gen_finalizer
PyObject* async_gen_finalizer;

Availability: >= 3.6

async_gen_firstiter
PyObject* async_gen_firstiter;
Undocumented in source.
async_gen_firstiter
PyObject* async_gen_firstiter;

Availability: >= 3.6

c_profilefunc
Py_tracefunc c_profilefunc;

_

c_profileobj
PyObject* c_profileobj;

_

c_tracefunc
Py_tracefunc c_tracefunc;

_

c_traceobj
PyObject* c_traceobj;

_

co_extra_freefuncs
freefunc[MAX_CO_EXTRA_USERS] co_extra_freefuncs;

Availability: = 3.6

co_extra_user_count
Py_ssize_t co_extra_user_count;

Availability: = 3.6

context
PyObject* context;
Undocumented in source.
context_ver
ulong context_ver;
Undocumented in source.
coroutine_origin_tracking_depth
int coroutine_origin_tracking_depth;
Undocumented in source.
coroutine_wrapper
PyObject* coroutine_wrapper;

Availability: >= 3.5

curexc_traceback
PyObject* curexc_traceback;

_

curexc_type
PyObject* curexc_type;

_

curexc_value
PyObject* curexc_value;

_

dict
PyObject* dict;

_

exc_info
_PyErr_StackItem* exc_info;

_

exc_state
_PyErr_StackItem exc_state;

_

exc_traceback
PyObject* exc_traceback;

_

exc_type
PyObject* exc_type;

_

exc_value
PyObject* exc_value;

_

frame
PyFrameObject* frame;

_

gilstate_counter
int gilstate_counter;

_

id
ulong id;
Undocumented in source.
in_coroutine_wrapper
int in_coroutine_wrapper;

Availability: >= 3.5

interp
PyInterpreterState* interp;

_

next
PyThreadState* next;

_

on_delete
void function(void*) on_delete;

Availability: >= 3.4

on_delete_data
void* on_delete_data;

Availability: >= 3.4

overflowed
ubyte overflowed;

The stack has overflowed. Allow 50 more calls Availability: 3.* to handle the runtime error.

prev
PyThreadState* prev;

Availability: >= 3.4

recursion_critical
ubyte recursion_critical;

The current calls must not cause Availability: 3.* a stack overflow.

recursion_depth
int recursion_depth;

_

stackcheck_counter
int stackcheck_counter;

_

thread_id
C_long thread_id;

Thread id where this tstate was created

tick_counter
int tick_counter;

tick_counter is incremented whenever the check_interval ticker reaches zero. The purpose is to give a useful measure of the number of interpreted bytecode instructions in a given thread. This extremely lightweight statistic collector may be of interest to profilers (like psyco.jit()), although nothing in the core uses it. Availability: < 3.4

tracing
int tracing;

_

trash_delete_later
PyObject* trash_delete_later;

Availability: >= 3.3

trash_delete_nesting
int trash_delete_nesting;

Availability: >= 3.3

use_tracing
int use_tracing;

_

Meta