comparison Python/pythonrun.c @ 46694:cda816c3a1e4

Added fast alternate io.BytesIO implementation and its test suite. Removed old test suite for StringIO. Modified truncate() to imply a seek to given argument value.
author Alexandre Vassalotti <alexandre@peadrop.com>
date Tue, 06 May 2008 19:48:38 +0000
parents 47d9bbe10897
children 74b9c85361f8
comparison
equal deleted inserted replaced
46690:c82f63efbc40 46694:cda816c3a1e4
238 PyErr_Clear(); 238 PyErr_Clear();
239 Py_XDECREF(warnings_module); 239 Py_XDECREF(warnings_module);
240 } 240 }
241 241
242 initmain(); /* Module __main__ */ 242 initmain(); /* Module __main__ */
243 if (!Py_NoSiteFlag)
244 initsite(); /* Module site */
243 if (initstdio() < 0) 245 if (initstdio() < 0)
244 Py_FatalError( 246 Py_FatalError(
245 "Py_Initialize: can't initialize sys standard streams"); 247 "Py_Initialize: can't initialize sys standard streams");
246 if (!Py_NoSiteFlag)
247 initsite(); /* Module site */
248 248
249 /* auto-thread-state API, if available */ 249 /* auto-thread-state API, if available */
250 #ifdef WITH_THREAD 250 #ifdef WITH_THREAD
251 _PyGILState_Init(interp, tstate); 251 _PyGILState_Init(interp, tstate);
252 #endif /* WITH_THREAD */ 252 #endif /* WITH_THREAD */