-
-
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:
If a keyboard interrupt is given while TAB autocomplete suggestions are being displayed, they are re-printed also below the last line, and continue to be re-printed as long as new keyboard interrupts are given.
after the keystrokes int.<TAB><TAB>
int.as_integer_ratio( int.bit_length( int.denominator int.imag int.mro() int.real
int.bit_count( int.conjugate( int.from_bytes( int.is_integer( int.numerator int.to_bytes(
>>> int.
then <CTRL-C>
int.as_integer_ratio( int.bit_length( int.denominator int.imag int.mro() int.real
int.bit_count( int.conjugate( int.from_bytes( int.is_integer( int.numerator int.to_bytes(
>>> int.
KeyboardInterrupt
int.as_integer_ratio( int.bit_length( int.denominator int.imag int.mro() int.real
int.bit_count( int.conjugate( int.from_bytes( int.is_integer( int.numerator int.to_bytes(
>>>
another <CTRL-C>
int.as_integer_ratio( int.bit_length( int.denominator int.imag int.mro() int.real
int.bit_count( int.conjugate( int.from_bytes( int.is_integer( int.numerator int.to_bytes(
>>> int.
KeyboardInterrupt
int.as_integer_ratio( int.bit_length( int.denominator int.imag int.mro() int.real
int.bit_count( int.conjugate( int.from_bytes( int.is_integer( int.numerator int.to_bytes(
>>>
KeyboardInterrupt
int.as_integer_ratio( int.bit_length( int.denominator int.imag int.mro() int.real
int.bit_count( int.conjugate( int.from_bytes( int.is_integer( int.numerator int.to_bytes(
>>>
<ENTER>
makes the last set of printed suggestions disappear, as does typing any printing characters.
int.as_integer_ratio( int.bit_length( int.denominator int.imag int.mro() int.real
int.bit_count( int.conjugate( int.from_bytes( int.is_integer( int.numerator int.to_bytes(
>>> int.
KeyboardInterrupt
int.as_integer_ratio( int.bit_length( int.denominator int.imag int.mro() int.real
int.bit_count( int.conjugate( int.from_bytes( int.is_integer( int.numerator int.to_bytes(
>>>
KeyboardInterrupt
>>>
>>>
CPython versions tested on:
3.14
Operating systems tested on:
macOS
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