CTRL+C/KeyboardInterrupt in editline not working properly on macOS REPL
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 77.2k
- Forks
- 36k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
Bug report
With the following in ~/.editrc:
bind "^R" em-inc-search-prev
Pressing CTRL+R inside the macOS-bundled python (/usr/bin/python3, which is compiled against editline) to enter editline history, and then pressing CTRL+C does not properly remove "bck" and does not write KeyboardInterrupt until CTRL+C is pressed two more times for a total of three times.
In other words, inside an editline history search, CTRL+C needs to be sent three times to get back to the normal REPL state.
This video may help with understanding the issue: https://github.com/Homebrew/homebrew-core/issues/118869#issuecomment-1365364374
Your environment
- CPython versions tested on: 3.9.6
- Operating system and architecture: macOS Monterey 12.6.1 / M1 / arm64
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce el problema en el REPL de /usr/bin/python3 incluido con macOS usando el binding de ~/.editrc indicado y, después, rastrea los puntos de entrada de la búsqueda del historial de editline y del manejo de CTRL+C. Se considera terminado cuando un solo CTRL+C sale limpiamente de la búsqueda del historial y escribe KeyboardInterrupt, en lugar de requerir tres pulsaciones.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- cli, operating-systems
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100