mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Issue #22869: Split pythonrun into two modules
- interpreter startup and shutdown code moved to a new pylifecycle.c module - Py_OptimizeFlag moved into the new module with the other global flags
This commit is contained in:
parent
66fb349d6c
commit
d600951748
16 changed files with 1701 additions and 1587 deletions
|
@ -30,8 +30,6 @@
|
|||
#include "symtable.h"
|
||||
#include "opcode.h"
|
||||
|
||||
int Py_OptimizeFlag = 0;
|
||||
|
||||
#define DEFAULT_BLOCK_SIZE 16
|
||||
#define DEFAULT_BLOCKS 8
|
||||
#define DEFAULT_CODE_SIZE 128
|
||||
|
|
1540
Python/pylifecycle.c
Normal file
1540
Python/pylifecycle.c
Normal file
File diff suppressed because it is too large
Load diff
1472
Python/pythonrun.c
1472
Python/pythonrun.c
File diff suppressed because it is too large
Load diff
|
@ -1681,7 +1681,7 @@ _PySys_Init(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
/* stdin/stdout/stderr are now set by pythonrun.c */
|
||||
/* stdin/stdout/stderr are set in pylifecycle.c */
|
||||
|
||||
SET_SYS_FROM_STRING_BORROW("__displayhook__",
|
||||
PyDict_GetItemString(sysdict, "displayhook"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue