ipykernel unconditionally calls `sys.stdout.flush()`
- Lingua principale
- Python
- Stelle
- 734
- Fork
- 412
- Merge medio
- 1g 5h
- PR unite (30g)
- 8
Descrizione
ipykernel unconditionally calls `sys.stdout.flush()` and `sys.stderr.flush()`. This is a problem when either `sys.stdout` or `sys.stderr` is `None`, such as in `pythonw.exe` on windows, or Pyinstaller's windowed mode. All of these checks should be garded with a not-None check.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Search the ipykernel source for the unconditional sys.stdout.flush() and sys.stderr.flush() calls described in the issue. Confirm the affected paths tolerate None streams, guard each flush accordingly, and run the relevant test suite to verify kernel behavior when either stream is unavailable.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- jupyter, python
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100