Content-Length: 296497 | pFad | https://github.com/python/cpython/issues/134869

70 Ctrl+C corrupts autocomplete · Issue #134869 · python/cpython · GitHub
Skip to content

Ctrl+C corrupts autocomplete #134869

@danielzgtg

Description

@danielzgtg

Bug report

Bug description:

  1. Open the REPL
  2. Type dict.c
  3. Press tab twice
  4. Press Ctrl + C

Expected behavior

There should be nothing after KeyboardInterrupt, and nothing after >>> like Node.js and PowerShell.

$ ./python
Python 3.15.0a0 (heads/main: future expected behavior ) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> dict.c
KeyboardInterrupt
>>> 

Actual behavior

The autocomplete was not cleared, and what is a KeyboardInterrupt.copy(?

$ ./python
Python 3.15.0a0 (heads/main:e9d845b41dc, May 28 2025, 18:37:23) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> dict.c
KeyboardInterrupt.copy(                                                                                                                                                               
>>> 
dict.clear(  dict.copy(

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/134869

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy