← 返回首页
When output does not end with '\n', the output text will always stay before '>>> ' · Issue #1050 · bpython/bpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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

New issue
New issue

Description

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

      Footer

      © 2026 GitHub, Inc.