This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pmpp
Recipients Kevin.Barry, Yauheni Kaliuta, emmanuel, pmpp, vstinner
Date 2020-09-09.14:21:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599661263.87.0.291736302681.issue14916@roundup.psfhosted.org>
In-reply-to
Content
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);
History
Date User Action Args
2020-09-09 14:21:03pmppsetrecipients: + pmpp, vstinner, Kevin.Barry, emmanuel, Yauheni Kaliuta
2020-09-09 14:21:03pmppsetmessageid: <1599661263.87.0.291736302681.issue14916@roundup.psfhosted.org>
2020-09-09 14:21:03pmpplinkissue14916 messages
2020-09-09 14:21:03pmppcreate