• Home
  • Raw
  • Download

Lines Matching refs:_PyRuntime

106         assert(_PyRuntime.warnings.once_registry);  in get_once_registry()
107 return _PyRuntime.warnings.once_registry; in get_once_registry()
117 Py_SETREF(_PyRuntime.warnings.once_registry, registry); in get_once_registry()
133 assert(_PyRuntime.warnings.default_action); in get_default_action()
134 return _PyRuntime.warnings.default_action; in get_default_action()
144 Py_SETREF(_PyRuntime.warnings.default_action, default_action); in get_default_action()
165 Py_SETREF(_PyRuntime.warnings.filters, warnings_filters); in get_filter()
168 PyObject *filters = _PyRuntime.warnings.filters; in get_filter()
259 || PyLong_AsLong(version_obj) != _PyRuntime.warnings.filters_version) in already_warned()
265 version_obj = PyLong_FromLong(_PyRuntime.warnings.filters_version); in already_warned()
980 _PyRuntime.warnings.filters_version++; in warnings_filters_mutated()
1314 if (_PyRuntime.warnings.filters == NULL) { in _PyWarnings_Init()
1315 _PyRuntime.warnings.filters = init_filters(); in _PyWarnings_Init()
1316 if (_PyRuntime.warnings.filters == NULL) in _PyWarnings_Init()
1319 Py_INCREF(_PyRuntime.warnings.filters); in _PyWarnings_Init()
1320 if (PyModule_AddObject(m, "filters", _PyRuntime.warnings.filters) < 0) in _PyWarnings_Init()
1323 if (_PyRuntime.warnings.once_registry == NULL) { in _PyWarnings_Init()
1324 _PyRuntime.warnings.once_registry = PyDict_New(); in _PyWarnings_Init()
1325 if (_PyRuntime.warnings.once_registry == NULL) in _PyWarnings_Init()
1328 Py_INCREF(_PyRuntime.warnings.once_registry); in _PyWarnings_Init()
1330 _PyRuntime.warnings.once_registry) < 0) in _PyWarnings_Init()
1333 if (_PyRuntime.warnings.default_action == NULL) { in _PyWarnings_Init()
1334 _PyRuntime.warnings.default_action = PyUnicode_FromString("default"); in _PyWarnings_Init()
1335 if (_PyRuntime.warnings.default_action == NULL) in _PyWarnings_Init()
1338 Py_INCREF(_PyRuntime.warnings.default_action); in _PyWarnings_Init()
1340 _PyRuntime.warnings.default_action) < 0) in _PyWarnings_Init()
1343 _PyRuntime.warnings.filters_version = 0; in _PyWarnings_Init()