diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-02-03 23:32:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 23:32:22 (GMT) |
commit | 91e888904478271c27c52c773863b41f5a8f7f30 (patch) | |
tree | e8a776ece441af92e2f5745f577362951d903756 /Misc/NEWS.d | |
parent | 4f76b3667d856a13107c65d44d802d0e73c3f104 (diff) | |
download | cpython-91e888904478271c27c52c773863b41f5a8f7f30.zip cpython-91e888904478271c27c52c773863b41f5a8f7f30.tar.gz cpython-91e888904478271c27c52c773863b41f5a8f7f30.tar.bz2 |
bpo-14916: use specified tokenizer fd for file input (GH-31006)
@pablogsal, sorry i failed to rebase to main, so i recreated https://github.com/python/cpython/pull/22190GH-issuecomment-1024633392
> PyRun_InteractiveOne\*() functions allow to explicitily set fd instead of stdin.
but stdin was hardcoded in readline call.
> This patch does not fix target file for prompt unlike original bpo one : prompt fd is unrelated to tokenizer source which could be read only. It is more of a bugfix regarding the docs : actual documentation say "prompt the user" so one would expect prompt to go on stdout not a file for both PyRun_InteractiveOne\*() and PyRun_InteractiveLoop\*().
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 89b13042fcfc95bae21a49806a205ef62f1cdd73)
Co-authored-by: Paul m. p. P <mail.peny@free.fr>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/C API/2020-09-11-02-50-41.bpo-14916.QN1Y03.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-09-11-02-50-41.bpo-14916.QN1Y03.rst b/Misc/NEWS.d/next/C API/2020-09-11-02-50-41.bpo-14916.QN1Y03.rst new file mode 100644 index 0000000..885cfc5 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2020-09-11-02-50-41.bpo-14916.QN1Y03.rst @@ -0,0 +1 @@ +Fixed bug in the tokenizer that prevented ``PyRun_InteractiveOne`` from parsing from the provided FD. |