Kaydet (Commit) 9b5dbedf authored tarafından Guido van Rossum's avatar Guido van Rossum

Attempt to import readline at interactive startup.

üst 717c6f95
......@@ -229,6 +229,14 @@ Py_Main(argc, argv)
fclose(fp);
}
}
if (isatty(fileno(stdin))) {
PyObject *v;
v = PyImport_ImportModule("readline");
if (v == NULL)
PyErr_Clear();
else
Py_DECREF(v);
}
}
sts = PyRun_AnyFile(
fp,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment