held. It releases the lock around the call to the function pointed to by
PyOS_ReadlineFunctionPointer (default PyOS_StdioReadline()).
- a malloc'ed string ending in \n normally
*/
-#define Py_USE_NEW_NAMES 1
-
-#include "config.h"
-
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-
-#include "myproto.h"
-#include "mymalloc.h"
-#include "intrcheck.h"
+#include "Python.h"
int (*PyOS_InputHook)() = NULL;
if (PyOS_ReadlineFunctionPointer == NULL) {
PyOS_ReadlineFunctionPointer = PyOS_StdioReadline;
}
+ Py_BEGIN_ALLOW_THREADS
return (*PyOS_ReadlineFunctionPointer)(prompt);
+ Py_END_ALLOW_THREADS
}