[issue37824] IDLE: Handle Shell input SyntaxWarning & DeprecationWarning

2021-11-12 Thread Terry J. Reedy
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? --

[issue37824] IDLE: Handle Shell input SyntaxWarning & DeprecationWarning

2021-02-08 Thread Terry J. Reedy
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