comparison Python/pythonrun.c @ 9285:5156cf8e4269 legacy-trunk

Support PYTHONOPTIMIZE variable; by Marc Lemburg.
author Guido van Rossum <guido@python.org>
date Wed, 07 Oct 1998 14:50:42 +0000
parents 07dae6fdae79
children d152adf3f094
comparison
equal deleted inserted replaced
9284:faa31b1c0b54 9285:5156cf8e4269
115 115
116 if ((p = getenv("PYTHONDEBUG")) && *p != '\0') 116 if ((p = getenv("PYTHONDEBUG")) && *p != '\0')
117 Py_DebugFlag = 1; 117 Py_DebugFlag = 1;
118 if ((p = getenv("PYTHONVERBOSE")) && *p != '\0') 118 if ((p = getenv("PYTHONVERBOSE")) && *p != '\0')
119 Py_VerboseFlag = 1; 119 Py_VerboseFlag = 1;
120 if ((p = getenv("PYTHONOPTIMIZE")) && *p != '\0')
121 Py_OptimizeFlag = 1;
120 122
121 interp = PyInterpreterState_New(); 123 interp = PyInterpreterState_New();
122 if (interp == NULL) 124 if (interp == NULL)
123 Py_FatalError("Py_Initialize: can't make first interpreter"); 125 Py_FatalError("Py_Initialize: can't make first interpreter");
124 126