Multiprocessing: facilitate worker processes printing to GUI shell
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
Feature or enhancement
Currently, multiprocessing functions can be run in IDLE. However, the output of these functions is not displayed in the IDLE shell. This is because the fork done by multiprocessing does not duplicate or inherit the socket connection (https://stackoverflow.com/a/35297841/14432236).
Pitch
The output of multiprocessing functions should be displayed in the IDLE shell if the shell is run. For instance, this example code will be able to run without displaying a termination message if multiprocessing is enabled: https://github.com/python/cpython/issues/92571
Previous discussion
I believe that the last couple bugs that I filed are because of this issue: https://github.com/python/cpython/issues/92622 and https://github.com/python/cpython/issues/92571
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
El issue no menciona archivos ni pruebas. Empieza revisando los issues vinculados 92571 y 92622 e investigando cómo afecta el fork de multiprocessing a la conexión de socket utilizada por el IDLE shell; se considera terminado cuando la salida del proceso worker aparece en el IDLE shell sin un mensaje de terminación.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- desktop
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 32/100