When output does not end with '\n', the output text will always stay before '>>> ' · Issue #1050 · bpython/bpython
Repository navigation
When output does not end with '\n', the output text will always stay before '>>> ' #1050
New issue
New issue
Open
#1061
Open
When output does not end with '\n', the output text will always stay before '>>> ' #1050 #1061
Description
@XiJet-Gary's profile XiJet-Gary opened on Apr 2, 2026Reproducible code:
print("Hello!", end='')
Python running result:
>>> print("Hello!", end='')
Hello!>>>
>>>
>>>
We will find that after pressing Enter several times, the previous output text will not stay in front of the '>>> ',
but in Bpython, do the same thing:
>>> print("Hello!", end='')
>>>
>>>
Hello!>>>
We wil find that the previous output will always stay in front of '>>> ', although we can use print() for printing a newline clear the leftover 'hello'.