Terry J. Reedy added the comment:
Might want to special case running certain console commands in Shell, such as
'pip install'.
https://stackoverflow.com/questions/69936921/packages-not-installing-in-idle-shell
SyntaxError: invalid syntax. Perhaps you forgot a comma?
--
__
Terry J. Reedy added the comment:
#43151 asked about 'is ' syntax warnings in REPL. Discussion noted
that IDLE Shell does note print it for "x is 'a'" (known here) and that for "if
x is 'a': print('executed')" there is a syntax error and no execution. The
conversion to SyntaxError was supp