Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 49035:dab7abb77e8f
compile _bytesio and _stringio into the binary and initalize stdio before site fixing #3279
Reviewer: Alexandre Vassalotti
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Fri, 05 Sep 2008 23:27:15 +0000 |
| parents | 4db1f5098175 |
| children | 9fc573fbaf5e |
comparison
equal
deleted
inserted
replaced
| 49034:ecd7f590e142 | 49035:dab7abb77e8f |
|---|---|
| 237 PyErr_Clear(); | 237 PyErr_Clear(); |
| 238 Py_XDECREF(warnings_module); | 238 Py_XDECREF(warnings_module); |
| 239 } | 239 } |
| 240 | 240 |
| 241 initmain(); /* Module __main__ */ | 241 initmain(); /* Module __main__ */ |
| 242 if (!Py_NoSiteFlag) | |
| 243 initsite(); /* Module site */ | |
| 244 if (initstdio() < 0) | 242 if (initstdio() < 0) |
| 245 Py_FatalError( | 243 Py_FatalError( |
| 246 "Py_Initialize: can't initialize sys standard streams"); | 244 "Py_Initialize: can't initialize sys standard streams"); |
| 245 if (!Py_NoSiteFlag) | |
| 246 initsite(); /* Module site */ | |
| 247 | 247 |
| 248 /* auto-thread-state API, if available */ | 248 /* auto-thread-state API, if available */ |
| 249 #ifdef WITH_THREAD | 249 #ifdef WITH_THREAD |
| 250 _PyGILState_Init(interp, tstate); | 250 _PyGILState_Init(interp, tstate); |
| 251 #endif /* WITH_THREAD */ | 251 #endif /* WITH_THREAD */ |
