mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592)
sys_setcheckinterval() now uses a local variable to parse arguments, before writing into interp->check_interval.
This commit is contained in:
parent
2ebd3813af
commit
caba55b3b7
22 changed files with 107 additions and 93 deletions
|
|
@ -306,7 +306,7 @@ dump_config(void)
|
|||
exit(1); \
|
||||
}
|
||||
|
||||
PyInterpreterState *interp = PyThreadState_Get()->interp;
|
||||
PyInterpreterState *interp = _PyInterpreterState_Get();
|
||||
_PyCoreConfig *config = &interp->core_config;
|
||||
|
||||
printf("install_signal_handlers = %i\n", config->install_signal_handlers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue