Skip to content

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

Closed
@lysnikolaou

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

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixes3.14new features, bugs 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