This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hugonobrega
Recipients hugonobrega, terry.reedy
Date 2021-03-04.18:14:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614881662.35.0.881061659082.issue43402@roundup.psfhosted.org>
In-reply-to
Content
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 behavior is seen when evaluting the same expression in an interactive python shell from a terminal (`python -i`)

Example:

IDLE shell (not expected):
>>> print('a',end='')
a
>>> 

Interactive python shell (expected): 
>>> print('a',end='')
a>>>

I could not find any settings in IDLE that might be governing this behavior, not any other issues mentioning this same thing.


Tested on Python 3.9.1 on Manjaro Linux.
History
Date User Action Args
2021-03-04 18:14:22hugonobregasetrecipients: + hugonobrega, terry.reedy
2021-03-04 18:14:22hugonobregasetmessageid: <1614881662.35.0.881061659082.issue43402@roundup.psfhosted.org>
2021-03-04 18:14:22hugonobregalinkissue43402 messages
2021-03-04 18:14:22hugonobregacreate