Repository navigation
PyREPL: KeyboardInterrupt does not clear completion menu if it's already visible #119553
Copy link
Copy link
Closed
Closed
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
Bug report
Bug description:
Pressing Ctrl-C (and emitting a KeyboardInterrupt) while the completion menu is visible (after having pressed Tab) does not clear it before the next line.
>>> import itertools
itertools.accumulate( itertools.groupby(
itertools.batched( itertools.islice(
itertools.chain( itertools.pairwise(
itertools.combinations( itertools.permutations(
itertools.combinations_with_replacement( itertools.product(
itertools.compress( itertools.repeat(
itertools.count( itertools.starmap(
itertools.cycle( itertools.takewhile(
itertools.dropwhile( itertools.tee(
itertools.filterfalse( itertools.zip_longest(
>>> itertools.
KeyboardInterrupt
itertools.accumulate( itertools.groupby(
itertools.batched( itertools.islice(
itertools.chain( itertools.pairwise(
itertools.combinations( itertools.permutations(
itertools.combinations_with_replacement( itertools.product(
itertools.compress( itertools.repeat(
itertools.count( itertools.starmap(
itertools.cycle( itertools.takewhile(
itertools.dropwhile( itertools.tee(
itertools.filterfalse( itertools.zip_longest(
>>> CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
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
Activity
[-]PyREPL: KeyboardInterrupt does not clear comletion menu if it's already visible[/-][+]PyREPL: KeyboardInterrupt does not clear completion menu if it's already visible[/+]pythongh-119553: Clear reader on Ctrl-C command
gh-119553: Clear reader on Ctrl-C command (GH-119801)
pythongh-119553: Clear reader on Ctrl-C command (pythonGH-119801)
[3.13] gh-119553: Clear reader on Ctrl-C command (GH-119801) (#120062)
pythongh-119553: Fix console when pressing Ctrl-C within a multiline …
gh-119553: Fix console when pressing Ctrl-C within a multiline block (#…
pythongh-119553: Fix console when pressing Ctrl-C within a multiline …
[3.13] gh-119553: Fix console when pressing Ctrl-C within a multiline…
pythongh-119553: Clear reader on Ctrl-C command (pythonGH-119801)
pythongh-119553: Fix console when pressing Ctrl-C within a multiline …
pythongh-119553: Clear reader on Ctrl-C command (pythonGH-119801)
pythongh-119553: Fix console when pressing Ctrl-C within a multiline …
pythongh-119553: Clear reader on Ctrl-C command (pythonGH-119801)
pythongh-119553: Fix console when pressing Ctrl-C within a multiline …
limwz01 commentedon Nov 24, 2024
I just compiled Python 3.13 and I see the fix in the source but somehow it doesn't fix the issue.