pmp-p <pmpp....@gmail.com> added the comment:
all PyRun_InteractiveOne* functions are also affected it is really annoying when implementing repl behaviour when embedding( use cases : pyodide, android, wasi ) But I think the correct patch is : - char *newtok = PyOS_Readline(stdin, stdout, tok->prompt); + char *newtok = PyOS_Readline(tok->fp? tok->fp : stdin, stdout, tok->prompt); ---------- nosy: +pmpp _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue14916> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com