Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 14195:999671f69df4 legacy-trunk
Fix to [ Bug #111165 ] doc-string removal masked by PYTHONOPTIMIZE
| author | Marc-André Lemburg <mal@egenix.com> |
|---|---|
| date | Fri, 25 Aug 2000 21:00:46 +0000 |
| parents | 65c1abf451dc |
| children | 9f9f3280dc68 |
comparison
equal
deleted
inserted
replaced
| 14194:9d8ce6ed4a29 | 14195:999671f69df4 |
|---|---|
| 106 if (initialized) | 106 if (initialized) |
| 107 return; | 107 return; |
| 108 initialized = 1; | 108 initialized = 1; |
| 109 | 109 |
| 110 if ((p = getenv("PYTHONDEBUG")) && *p != '\0') | 110 if ((p = getenv("PYTHONDEBUG")) && *p != '\0') |
| 111 Py_DebugFlag = 1; | 111 Py_DebugFlag = Py_DebugFlag ? Py_DebugFlag : 1; |
| 112 if ((p = getenv("PYTHONVERBOSE")) && *p != '\0') | 112 if ((p = getenv("PYTHONVERBOSE")) && *p != '\0') |
| 113 Py_VerboseFlag = 1; | 113 Py_VerboseFlag = Py_VerboseFlag ? Py_VerboseFlag : 1; |
| 114 if ((p = getenv("PYTHONOPTIMIZE")) && *p != '\0') | 114 if ((p = getenv("PYTHONOPTIMIZE")) && *p != '\0') |
| 115 Py_OptimizeFlag = 1; | 115 Py_OptimizeFlag = Py_OptimizeFlag ? Py_OptimizeFlag : 1; |
| 116 | 116 |
| 117 interp = PyInterpreterState_New(); | 117 interp = PyInterpreterState_New(); |
| 118 if (interp == NULL) | 118 if (interp == NULL) |
| 119 Py_FatalError("Py_Initialize: can't make first interpreter"); | 119 Py_FatalError("Py_Initialize: can't make first interpreter"); |
| 120 | 120 |
