You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
If you enter print(5 + 5) it outputs twice. I'm assuming this is because print() returns the value as well as printing it out but the repeat output is a little unexpected in the Interactions Window.
The text was updated successfully, but these errors were encountered:
The only sane fix that jumps to my mind is to change print() to not return the value it has printed, and return nothing instead (which the REPL avoids printing). But @shriram has some good arguments for keeping print() working this way, at least for now.
I'm not going to address this right away, since I think the behavior is easily explicable and consistent with the rest of the REPL's semantics.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If you enter
print(5 + 5)
it outputs twice. I'm assuming this is because print() returns the value as well as printing it out but the repeat output is a little unexpected in the Interactions Window.The text was updated successfully, but these errors were encountered: