Skip to content

PyREPL: KeyboardInterrupt does not clear completion menu if it's already visible #119553

Closed

Description

@lysnikolaou

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

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    topic-replRelated to the interactive shell
    on May 25, 2024
  2. self-assigned this
    on May 25, 2024
  3. changed the title [-]PyREPL: KeyboardInterrupt does not clear comletion menu if it's already visible[/-] [+]PyREPL: KeyboardInterrupt does not clear completion menu if it's already visible[/+] on May 25, 2024
  4. added a commit that references this issue on May 30, 2024
  5. added a commit that references this issue on Jun 4, 2024
  6. added a commit that references this issue on Jun 4, 2024
  7. added 3 commits that reference this issue on Jun 4, 2024
  8. added a commit that references this issue on Jun 4, 2024
  9. added a commit that references this issue on Jun 4, 2024
  10. added 2 commits that reference this issue on Jun 5, 2024
  11. added 2 commits that reference this issue on Jul 11, 2024
  12. added 2 commits that reference this issue on Jul 17, 2024
  13. limwz01 commented on Nov 24, 2024

    @limwz01

    I just compiled Python 3.13 and I see the fix in the source but somehow it doesn't fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.13only security fixes3.14bugs and security fixestopic-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