gh-159225: PyREPL input should not write to history (GH-159263)
* gh-159225: PyREPL input should not write to history
Values entered in an input statement are not Python statements and thus the reader should suspend history recording when in input mode
* 📜🤖 Added by blurb_it.
* Remove comment
* Only suspend writing
* gh-159225: Cover input history isolation and interrupted reads
---------
(cherry picked from commit 6f92424d8e)
Co-authored-by: Eduardo Villalpando Mello <eduardovil@microsoft.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>