mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00

No longer export these 14 internal C API functions: * _PySys_Audit() * _PySys_SetAttr() * _PyTraceBack_FromFrame() * _PyTraceBack_Print_Indented() * _PyUnicode_FormatAdvancedWriter() * _PyUnicode_ScanIdentifier() * _PyWarnings_Init() * _Py_DumpASCII() * _Py_DumpDecimal() * _Py_DumpHexadecimal() * _Py_DumpTraceback() * _Py_DumpTracebackThreads() * _Py_WriteIndent() * _Py_WriteIndentedMargin()
30 lines
821 B
C
30 lines
821 B
C
#ifndef Py_INTERNAL_WARNINGS_H
|
|
#define Py_INTERNAL_WARNINGS_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
#endif
|
|
|
|
struct _warnings_runtime_state {
|
|
/* Both 'filters' and 'onceregistry' can be set in warnings.py;
|
|
get_warnings_attr() will reset these variables accordingly. */
|
|
PyObject *filters; /* List */
|
|
PyObject *once_registry; /* Dict */
|
|
PyObject *default_action; /* String */
|
|
long filters_version;
|
|
};
|
|
|
|
extern int _PyWarnings_InitState(PyInterpreterState *interp);
|
|
|
|
extern PyObject* _PyWarnings_Init(void);
|
|
|
|
extern void _PyErr_WarnUnawaitedCoroutine(PyObject *coro);
|
|
extern void _PyErr_WarnUnawaitedAgenMethod(PyAsyncGenObject *agen, PyObject *method);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_INTERNAL_WARNINGS_H */
|