-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Open
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
- Open the REPL
- Type
dict.c
- Press tab twice
- 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
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error