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 John Smith
Recipients John Smith, terry.reedy
Date 2020-02-22.10:29:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582367377.76.0.509554808526.issue39724@roundup.psfhosted.org>
In-reply-to
Content
preamble: I am aware that I am not the first to encounter this issue but neither I could identify a preexisting ticket which fully matches nor is the commonly recommended "solution" (stay away from IDLE) satisfying.

environment: win10, python 3.7 (tested with 32 and 64 bit version)

description: If the attached script is started from IDLE the "alive" only shows up once for every input, while the script output "alive" frequently if ran from the terminal with python. So there is a discrepancy between the behavior of IDLE and "plain" python, which can lead to serious "irritations". If the print is replaced with logging.info and the logging is setup to write into a file everything works as expected and equal in both environments.

thoughts: the input call seems to block access to stdout(?) in "IDLE mode". I noticed that there are several topics/post regarding IDLE's stdout/in behavior but I was unabled to find a (convinient) solution besides "just quit using IDLE". It feels strange that the editor bundled with python has such a reputation and features such a deviation in behavior from "plain" python.
History
Date User Action Args
2020-02-22 10:29:37John Smithsetrecipients: + John Smith, terry.reedy
2020-02-22 10:29:37John Smithsetmessageid: <1582367377.76.0.509554808526.issue39724@roundup.psfhosted.org>
2020-02-22 10:29:37John Smithlinkissue39724 messages
2020-02-22 10:29:37John Smithcreate