Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 13c94747c74437e594b7fc242ff7da668e81887c authored by Ned Deily on 15 August 2020, 05:20:16 UTC
3.7.9
Tip revision: 13c9474
warnings.h
#ifndef Py_INTERNAL_WARNINGS_H
#define Py_INTERNAL_WARNINGS_H
#ifdef __cplusplus
extern "C" {
#endif

#include "object.h"

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;
};

#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_WARNINGS_H */
back to top