Skip to content

When output does not end with '\n', the output text will always stay before '>>> ' #1050

Description

@XiJet-Gary

Reproducible 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'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions