Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 44587:fb5a6330f71b
Merged revisions 59822-59841 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59822 | georg.brandl | 2008-01-07 17:43:47 +0100 (Mon, 07 Jan 2008) | 2 lines
Restore "somenamedtuple" as the "class" for named tuple attrs.
........
r59824 | georg.brandl | 2008-01-07 18:09:35 +0100 (Mon, 07 Jan 2008) | 2 lines
Patch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode.
........
r59827 | georg.brandl | 2008-01-07 18:25:53 +0100 (Mon, 07 Jan 2008) | 2 lines
patch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.
........
r59830 | georg.brandl | 2008-01-07 19:16:36 +0100 (Mon, 07 Jan 2008) | 2 lines
Make Python compile with --disable-unicode.
........
r59831 | georg.brandl | 2008-01-07 19:23:27 +0100 (Mon, 07 Jan 2008) | 2 lines
Restructure urllib doc structure.
........
r59833 | georg.brandl | 2008-01-07 19:41:34 +0100 (Mon, 07 Jan 2008) | 2 lines
Fix #define ordering.
........
r59834 | georg.brandl | 2008-01-07 19:47:44 +0100 (Mon, 07 Jan 2008) | 2 lines
#467924, patch by Alan McIntyre: Add ZipFile.extract and ZipFile.extractall.
........
r59835 | raymond.hettinger | 2008-01-07 19:52:19 +0100 (Mon, 07 Jan 2008) | 1 line
Fix inconsistent title levels -- it made the whole doc build crash horribly.
........
r59836 | georg.brandl | 2008-01-07 19:57:03 +0100 (Mon, 07 Jan 2008) | 2 lines
Fix two further doc build warnings.
........
r59837 | georg.brandl | 2008-01-07 20:17:10 +0100 (Mon, 07 Jan 2008) | 2 lines
Clarify metaclass docs and add example.
........
r59838 | vinay.sajip | 2008-01-07 20:40:10 +0100 (Mon, 07 Jan 2008) | 1 line
Added section about adding contextual information to log output.
........
r59839 | christian.heimes | 2008-01-07 20:58:41 +0100 (Mon, 07 Jan 2008) | 1 line
Fixed indention problem that caused the second TIPC test to run on systems without TIPC
........
r59840 | raymond.hettinger | 2008-01-07 21:07:38 +0100 (Mon, 07 Jan 2008) | 1 line
Cleanup named tuple subclassing example.
........
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Mon, 07 Jan 2008 21:14:23 +0000 |
| parents | 5a0cbe36a603 |
| children | ebfbaa1051e2 |
comparison
equal
deleted
inserted
replaced
| 44586:a2938c55200c | 44587:fb5a6330f71b |
|---|---|
| 74 int Py_VerboseFlag; /* Needed by import.c */ | 74 int Py_VerboseFlag; /* Needed by import.c */ |
| 75 int Py_InteractiveFlag; /* Needed by Py_FdIsInteractive() below */ | 75 int Py_InteractiveFlag; /* Needed by Py_FdIsInteractive() below */ |
| 76 int Py_InspectFlag; /* Needed to determine whether to exit at SystemError */ | 76 int Py_InspectFlag; /* Needed to determine whether to exit at SystemError */ |
| 77 int Py_NoSiteFlag; /* Suppress 'import site' */ | 77 int Py_NoSiteFlag; /* Suppress 'import site' */ |
| 78 int Py_BytesWarningFlag; /* Warn on str(bytes) and str(buffer) */ | 78 int Py_BytesWarningFlag; /* Warn on str(bytes) and str(buffer) */ |
| 79 int Py_DontWriteBytecodeFlag; /* Suppress writing bytecode files (*.py[co]) */ | |
| 79 int Py_UseClassExceptionsFlag = 1; /* Needed by bltinmodule.c: deprecated */ | 80 int Py_UseClassExceptionsFlag = 1; /* Needed by bltinmodule.c: deprecated */ |
| 80 int Py_FrozenFlag; /* Needed by getpath.c */ | 81 int Py_FrozenFlag; /* Needed by getpath.c */ |
| 81 int Py_IgnoreEnvironmentFlag; /* e.g. PYTHONPATH, PYTHONHOME */ | 82 int Py_IgnoreEnvironmentFlag; /* e.g. PYTHONPATH, PYTHONHOME */ |
| 82 | 83 |
| 83 /* Reference to 'warnings' module, to avoid importing it | 84 /* Reference to 'warnings' module, to avoid importing it |
| 174 Py_DebugFlag = add_flag(Py_DebugFlag, p); | 175 Py_DebugFlag = add_flag(Py_DebugFlag, p); |
| 175 if ((p = Py_GETENV("PYTHONVERBOSE")) && *p != '\0') | 176 if ((p = Py_GETENV("PYTHONVERBOSE")) && *p != '\0') |
| 176 Py_VerboseFlag = add_flag(Py_VerboseFlag, p); | 177 Py_VerboseFlag = add_flag(Py_VerboseFlag, p); |
| 177 if ((p = Py_GETENV("PYTHONOPTIMIZE")) && *p != '\0') | 178 if ((p = Py_GETENV("PYTHONOPTIMIZE")) && *p != '\0') |
| 178 Py_OptimizeFlag = add_flag(Py_OptimizeFlag, p); | 179 Py_OptimizeFlag = add_flag(Py_OptimizeFlag, p); |
| 180 if ((p = Py_GETENV("PYTHONDONTWRITEBYTECODE")) && *p != '\0') | |
| 181 Py_DontWriteBytecodeFlag = add_flag(Py_DontWriteBytecodeFlag, p); | |
| 179 | 182 |
| 180 interp = PyInterpreterState_New(); | 183 interp = PyInterpreterState_New(); |
| 181 if (interp == NULL) | 184 if (interp == NULL) |
| 182 Py_FatalError("Py_Initialize: can't make first interpreter"); | 185 Py_FatalError("Py_Initialize: can't make first interpreter"); |
| 183 | 186 |
