Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

print() displays twice in Interactions Window #18

Open
samuela opened this issue Sep 15, 2013 · 1 comment
Open

print() displays twice in Interactions Window #18

samuela opened this issue Sep 15, 2013 · 1 comment

Comments

@samuela
Copy link

samuela commented Sep 15, 2013

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.

@jpolitz
Copy link
Member

jpolitz commented Sep 17, 2013

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants