[issue44325] IDLE: Fix shell comment anomalies

2021-06-07 Thread Tal Einat
Tal Einat added the comment: The sidebar doesn't seem to be causing this issue, it's just making it a bit more visible, since what was previously a blank line now also has a more visible "..." continuation prompt. -- ___ Python tracker

[issue44325] IDLE: Fix shell comment anomalies

2021-06-07 Thread Tal Einat
Tal Einat added the comment: > However, I sometimes saw ... appear very briefly, only to be overwritten with > >>>. This is a known limitation of the current sidebar implementation, which was very difficult to avoid and was considered minor enough to let be for now. --

[issue44325] IDLE: Fix shell comment anomalies

2021-06-07 Thread Tal Einat
Tal Einat added the comment: > 1) trailing whitespace (' ' and '\t' at least) is removed before this > function is called. I presume in IDLE rather than code.II, but cannot find > where. It is not with .rstrip. You're probably looking for this code in

[issue44325] IDLE: Fix shell comment anomalies

2021-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added debug prints to _maybe_compile and confirmed 1) trailing whitespace (' ' and '\t' at least) is removed before this function is called. I presume in IDLE rather than code.II, but cannot find where. It is not with .rstrip. (Note: doing so after '\'

[issue44325] IDLE: Fix shell comment anomalies

2021-06-06 Thread Terry J. Reedy
New submission from Terry J. Reedy : Spinoff from #38673, about standard REPL, msg356271 (me) and msg356348 (Guido). In the following interactions, no blank lines were entered. 3.9 behavior >>> #a >>> # a >>> #a >>> # a >>> Mystery 1: why the blank continuation line? I previously wrote