Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

KeyboardInterrupt during paste breaks the new REPL #121295

Closed
Labels
topic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error
@treyhunner

Description

@treyhunner

Bug report

Bug description:

To reproduce, typef = """ then paste a giant block of text (I pastedthe text of Frankenstein) then press Ctrl+C immediately (while the text is being pasted).

>>> f="""<GIANT BLOCK OF TEXT>Then hit Ctrl+C

After this the REPL will enter a state where it seems unable toend a block of code. The prompt changes to... and only Ctrl+C will quit out of the block.

Also nothing is displayed while typing until Enter is pressed.

Here'san animation showing the issue:

666571

This issue is also reproducible on themain branch.

I checked out commit32a0fab and I could not reproduce this, so the issue arose sometime after#120253 was merged.

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-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


      [8]ページ先頭

      ©2009-2025 Movatter.jp