Steve Dower <steve.do...@python.org> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39182>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to