Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant blank lines to match CPython REPL #283

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhihaoy
Copy link

@zhihaoy zhihaoy commented Jan 14, 2019

When insert_blank_line_after_output is on,

>>> a = 'meow'
>>> a

prints two blank lines, while print(a) prints one; when insert_blank_line_after_output is off, that snippet prints one blank lines, which doesn't match CPython REPL's behavior (no extra line), while print(a) does. The two blank lines are not desirable to insert_blank_line_after_output users, and the one blank line is not desirable to non-insert_blank_line_after_output users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant