Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
pycore_exceptions.h41 linesDownload Raw Back to internal
1#ifndef Py_INTERNAL_EXCEPTIONS_H2#define Py_INTERNAL_EXCEPTIONS_H3#ifdef __cplusplus4extern "C" {5#endif6 7#ifndef Py_BUILD_CORE8#  error "this header requires Py_BUILD_CORE define"9#endif10 11 12/* runtime lifecycle */13 14extern PyStatus _PyExc_InitState(PyInterpreterState *);15extern PyStatus _PyExc_InitGlobalObjects(PyInterpreterState *);16extern int _PyExc_InitTypes(PyInterpreterState *);17extern void _PyExc_Fini(PyInterpreterState *);18 19 20/* other API */21 22struct _Py_exc_state {23    // The dict mapping from errno codes to OSError subclasses24    PyObject *errnomap;25    PyBaseExceptionObject *memerrors_freelist;26    int memerrors_numfree;27#ifdef Py_GIL_DISABLED28    PyMutex memerrors_lock;29#endif30    // The ExceptionGroup type31    PyObject *PyExc_ExceptionGroup;32};33 34extern void _PyExc_ClearExceptionGroupType(PyInterpreterState *);35 36 37#ifdef __cplusplus38}39#endif40#endif /* !Py_INTERNAL_EXCEPTIONS_H */41 
codekingpro/portable-devtools · Team Ai