Mercurial > cpython-lru_cache-weakref
diff 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 |
line wrap: on
line diff
--- a/Python/pythonrun.c Wed Oct 07 14:50:06 1998 +0000 +++ b/Python/pythonrun.c Wed Oct 07 14:50:42 1998 +0000 @@ -117,6 +117,8 @@ 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)
