In Python 2.7 README file, it says
Starting with Python 2.3, the majority of the interpreter can be built into a shared library, which can then be used by the interpreter executable
I want to know the following global variables in pystate.c are compiled into the shared library or the executable file?
static PyInterpreterState *interp_head = NULL;
PyThreadState *_PyThreadState_Current = NULL;
By the way, if such global(static) variables are compiled into shared library, does these states would be shared between different python processes? for example, pCryptGenRandom in random.c