Skip to content

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

@XiJet-Gary

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions