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

print is a function, this allows to properly exit ipython #637

Closed
wants to merge 1 commit into from

Conversation

tomspur
Copy link
Contributor

@tomspur tomspur commented Jul 29, 2011

Under Fedora 15 a single print seems to be not allowed in ipython,
so we need to use print as a function here.

After this commit, there is a proper newline on exiting with CTRL+d

Under Fedora 15 a single print seems to be not allowed in ipython,
so we need to use print as a function here.

After this commit, there is a proper newline on exiting with CTRL+d

Closes ipythongh-637.
@minrk
Copy link
Member

minrk commented Jul 29, 2011

This shouldn't be Fedora-specific. The from __future__ import print_function at the top means those lonely prints should be print(), as you changed. There's actually another one on L199.

I think the reason I never noticed the absence of the newline is that I actually like it without the newline better, but that's clearly not the intent of the code.

Thanks!

@fperez
Copy link
Member

fperez commented Jul 30, 2011

I've made the changes (including the extra one) in the what's new branch, so I'm closing it here manually (commit credit was left as Tom's). Thanks, @tomspur!

@fperez fperez closed this Jul 30, 2011
fperez pushed a commit to fperez/ipython that referenced this pull request Jul 30, 2011
These were causing a missing newline on exit.

Closes ipythongh-637, slightly modified from the original version, as there
was one more print elsewhere in the file.
fperez pushed a commit to fperez/ipython that referenced this pull request Jul 30, 2011
These were causing a missing newline on exit.

Closes ipythongh-637, slightly modified from the original version, as there
was one more print elsewhere in the file.
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
These were causing a missing newline on exit.

Closes ipythongh-637, slightly modified from the original version, as there
was one more print elsewhere in the file.
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.

None yet

3 participants