Skip to content

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

Description

@AlexWaygood

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

Activity

  1. added
    topic-replRelated to the interactive shell
    type-bugAn unexpected behavior, bug, or error
    3.13only security fixes
    3.14bugs and security fixes
    on May 10, 2024
  2. serhiy-storchaka commented on May 10, 2024

    @serhiy-storchaka
    Member

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

  3. added 5 commits that reference this issue on May 21, 2024
  4. added a commit that references this issue on May 21, 2024
  5. added a commit that references this issue on May 22, 2024
  6. added a commit that references this issue on May 22, 2024
  7. AlexWaygood commented on May 23, 2024

    @AlexWaygood
    MemberAuthor

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

  8. added a commit that references this issue on Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixes3.14bugs and security fixestopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions