Terry J. Reedy <tjre...@udel.edu> added the comment:

Thank you Dennis.  I was just about to post that after installing 3.8.3rc1 and 
3.9.0a6 in a Macbook Air, with identical idlelib code, I confirmed the problem 
as specific to 3.9 and that

$ python3.9 -X oldparser -m idlelib

works around the issue.  My python development desktop is currently in a  
repair shop. I will try to verify the fix on Windows master when I can.

idlelib.pyshell.ModifiedInterpreter subclasses code.InteractiveInterpreter.  
After each 'Enter', something calls compile(current_lines,  
'<input>','single').  Something changed that makes a difference in one of the 
files.

The only thing I found is that the error for 'if 1:\n' changed from 
"SyntaxError: unexpected EOF ..." to "IndentationError: expected ...".  Since 
issubclass(IndentationError, SyntaxError), I would not expect that to be a 
problem, but if Pablo fixed this, good enough for me.  So I am closing until 
someone says otherwise.

----------
assignee: terry.reedy -> 
components: +Interpreter Core, Library (Lib)
nosy: +lukasz.langa, lys.nikolaou, pablogsal -Dennis Sweeney
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
title: IDLE Shell not allowing more than two line inputs -> PEG parser disables 
IDLE Shell input > 2 lines
type:  -> compile error

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

Reply via email to