Where Online Learning is simpler!
The C and C++ Include Header Files
cat -n /usr/include/python3.12/internal/pycore_object_state.h
1 #ifndef Py_INTERNAL_OBJECT_STATE_H 2 #define Py_INTERNAL_OBJECT_STATE_H 3 #ifdef __cplusplus 4 extern "C" { 5 #endif 6 7 #ifndef Py_BUILD_CORE 8 # error "this header requires Py_BUILD_CORE define" 9 #endif 10 11 struct _py_object_runtime_state { 12 #ifdef Py_REF_DEBUG 13 Py_ssize_t interpreter_leaks; 14 #endif 15 int _not_used; 16 }; 17 18 struct _py_object_state { 19 #ifdef Py_REF_DEBUG 20 Py_ssize_t reftotal; 21 #endif 22 #ifdef Py_TRACE_REFS 23 /* Head of circular doubly-linked list of all objects. These are linked 24 * together via the _ob_prev and _ob_next members of a PyObject, which 25 * exist only in a Py_TRACE_REFS build. 26 */ 27 PyObject *refchain; 28 /* In most cases, refchain points to _refchain_obj. 29 * In sub-interpreters that share objmalloc state with the main interp, 30 * refchain points to the main interpreter's _refchain_obj, and their own 31 * _refchain_obj is unused. 32 */ 33 PyObject _refchain_obj; 34 #endif 35 int _not_used; 36 }; 37 38 39 #ifdef __cplusplus 40 } 41 #endif 42 #endif /* !Py_INTERNAL_OBJECT_STATE_H */