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 steve.dower
Recipients Dutcho, christian.heimes, steve.dower, terry.reedy
Date 2020-01-04.19:40:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578166823.19.0.00736649483174.issue39182@roundup.psfhosted.org>
In-reply-to
Content
Right, IDLE doesn't call exec/compile until _after_ the code is submitted, while the regular prompt calls it first and passes stdin as the source file (which then does a buffered read).

The loop occurs because the next action after an invalid input is to read another input, which is correct, it just doesn't (and cannot) detect the case where an error is raised _before_ the user presses Enter.
History
Date User Action Args
2020-01-04 19:40:23steve.dowersetrecipients: + steve.dower, terry.reedy, christian.heimes, Dutcho
2020-01-04 19:40:23steve.dowersetmessageid: <1578166823.19.0.00736649483174.issue39182@roundup.psfhosted.org>
2020-01-04 19:40:23steve.dowerlinkissue39182 messages
2020-01-04 19:40:22steve.dowercreate