From: Guido van Rossum Date: Wed, 7 Oct 1998 14:50:42 +0000 (+0000) Subject: Support PYTHONOPTIMIZE variable; by Marc Lemburg. X-Git-Tag: v1.5.2a2~108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=562f5b1480714a78a1981b8b4426f4d1e180a898;p=python Support PYTHONOPTIMIZE variable; by Marc Lemburg. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 7cff848422..1e26efcc71 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -117,6 +117,8 @@ Py_Initialize() Py_DebugFlag = 1; if ((p = getenv("PYTHONVERBOSE")) && *p != '\0') Py_VerboseFlag = 1; + if ((p = getenv("PYTHONOPTIMIZE")) && *p != '\0') + Py_OptimizeFlag = 1; interp = PyInterpreterState_New(); if (interp == NULL)