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.
This commit is contained in:
Alexandre Vassalotti 2008-05-06 19:48:38 +00:00
parent 5d8da20dd1
commit 77250f4df7
10 changed files with 1245 additions and 193 deletions

View file

@ -240,11 +240,11 @@ Py_InitializeEx(int install_sigs)
}
initmain(); /* Module __main__ */
if (!Py_NoSiteFlag)
initsite(); /* Module site */
if (initstdio() < 0)
Py_FatalError(
"Py_Initialize: can't initialize sys standard streams");
if (!Py_NoSiteFlag)
initsite(); /* Module site */
/* auto-thread-state API, if available */
#ifdef WITH_THREAD