warnings.h 508 B

123456789101112131415161718192021
  1. #ifndef Py_INTERNAL_WARNINGS_H
  2. #define Py_INTERNAL_WARNINGS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "object.h"
  7. struct _warnings_runtime_state {
  8. /* Both 'filters' and 'onceregistry' can be set in warnings.py;
  9. get_warnings_attr() will reset these variables accordingly. */
  10. PyObject *filters; /* List */
  11. PyObject *once_registry; /* Dict */
  12. PyObject *default_action; /* String */
  13. long filters_version;
  14. };
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif /* !Py_INTERNAL_WARNINGS_H */