[issue43402] IDLE shell adds newline after print even when `end=''` is specificied

2021-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know how many core devs would agree that inserting '\n' would be preferable. They might say that users who want clean interaction should not use the 'end' parameter the way you did in interactive mode. IDLE is more aimed at beginners and can be more

[issue43402] IDLE shell adds newline after print even when `end=''` is specificied

2021-03-04 Thread Hugo Nobrega
Hugo Nobrega added the comment: I see, thank you. But, in that case, shouldn't the interactive `python -i` shell have the same (now seen as desired) behavior as the IDLE shell? -- ___ Python tracker ___

[issue43402] IDLE shell adds newline after print even when `end=''` is specificied

2021-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Starting interactive code input on a new line is intentional and not a bug. IDLE has other code to keep user program output separate from user code input, as when there is delayed asynchonous output. I plan to do more work to keep the two separate. ---

[issue43402] IDLE shell adds newline after print even when `end=''` is specificied

2021-03-04 Thread Hugo Nobrega
New submission from Hugo Nobrega : When evaluting a call to the `print` function with argument `end=''` in the IDLE shell, a newline is unexpectedly added at the end, before the next shell prompt. The expected behavior is to have the shell prompt next to the last printed line. The expected b