GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — "Paste mode" in the new REPL does not display the result of evaluated expressions · Issue #118893 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
"Paste mode" in the new REPL does not display the result of evaluated expressions#118893
Copy link
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixestopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@AlexWaygood
AlexWaygood
opened on May 10, 2024
Issue body actions

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

  • gh-118893: Evaluate all statements in the new REPL separately #119318
  • [3.13] gh-118893: Evaluate all statements in the new REPL separately (GH-119318) #119408
Reacted by Miro Hrončok

Activity

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

    @serhiy-storchaka
    serhiy-storchaka
    on May 10, 2024
    Member
    More actions

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

    Reacted by Alex Waygood, Kirill Podoprigora and sobolevn
  3. pablogsal
    added 5 commits that reference this issue on May 21, 2024

    pythongh-118893: Evaluate all statements in the new REPL separately

    c40ed58

    pythongh-118893: Evaluate all statements in the new REPL separately

    fcc44e6

    pythongh-118893: Evaluate all statements in the new REPL separately

    40df02e

    pythongh-118893: Evaluate all statements in the new REPL separately

    a5cd942

    pythongh-118893: Evaluate all statements in the new REPL separately

    06ccec4
  4. ambv
    added a commit that references this issue on May 21, 2024

    gh-118893: Evaluate all statements in the new REPL separately (#119318)

    a3e4fec
  5. miss-islington
    added a commit that references this issue on May 22, 2024

    pythongh-118893: Evaluate all statements in the new REPL separately (p…

    76b149e
  6. lysnikolaou
    added a commit that references this issue on May 22, 2024

    [3.13] gh-118893: Evaluate all statements in the new REPL separately (G…

    a463cd8
  7. AlexWaygood commented on May 23, 2024

    @AlexWaygood
    AlexWaygood
    on May 23, 2024
    MemberAuthor
    More actions

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

  8. AlexWaygood
    closed this as completedon May 23, 2024
  9. estyxx
    added a commit that references this issue on Jul 17, 2024

    pythongh-118893: Evaluate all statements in the new REPL separately (p…

    83f9099
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 fixesonly security fixes3.14bugs and security fixesbugs and security fixestopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.