Kaydet (Commit) 562f5b14 authored tarafından Guido van Rossum's avatar Guido van Rossum

Support PYTHONOPTIMIZE variable; by Marc Lemburg.

üst e7adf3eb
...@@ -117,6 +117,8 @@ Py_Initialize() ...@@ -117,6 +117,8 @@ Py_Initialize()
Py_DebugFlag = 1; Py_DebugFlag = 1;
if ((p = getenv("PYTHONVERBOSE")) && *p != '\0') if ((p = getenv("PYTHONVERBOSE")) && *p != '\0')
Py_VerboseFlag = 1; Py_VerboseFlag = 1;
if ((p = getenv("PYTHONOPTIMIZE")) && *p != '\0')
Py_OptimizeFlag = 1;
interp = PyInterpreterState_New(); interp = PyInterpreterState_New();
if (interp == NULL) if (interp == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment