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

"Paste mode" in the new REPL does not display the result of evaluated expressions #118893

Closed
AlexWaygood opened this issue May 10, 2024 · 2 comments
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error

Comments

@AlexWaygood
Copy link
Member

AlexWaygood commented May 10, 2024

We've discovered that if you manually type out a condition that evaluates to False in the new REPL, False is printed as the result, as expected...

>>> (3, 13, 0, "final") < (3, 13, 0, "beta")
False

...but that if you copy and paste this condition into the REPL, nothing is printed (implying that the condition evaluates to None:

>>> (3, 13, 0, "final") < (3, 13, 0, "beta")
>>> 

Thanks @Eclips4 for realising that the difference in behaviour here was due to copying-and-pasting the condition rather than typing it out!

Originally posted by @AlexWaygood in #111201 (comment)

Linked PRs

@AlexWaygood AlexWaygood added topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error 3.13 bugs and security fixes 3.14 new features, bugs and security fixes labels May 10, 2024
@serhiy-storchaka
Copy link
Member

It is not only with conditions, but with any expressions, including literals.

ambv added a commit that referenced this issue May 21, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 22, 2024
…ythonGH-119318)

(cherry picked from commit a3e4fec)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
lysnikolaou pushed a commit that referenced this issue May 22, 2024
…H-119318) (#119408)

(cherry picked from commit a3e4fec)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@AlexWaygood
Copy link
Member Author

Looks like this is now fixed! (@pablogsal or @ambv please reopen if there's more to do!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants