bpo-36829: sys.excepthook and sys.unraisablehook flush by vstinner · Pull Request #13620 · python/cpython
vstinner
changed the title
bpo-36829: sys.unraisablehook() explicits flush stderr
bpo-36829: sys.excepthook and sys.unraisablehook flush
sys.excepthook() and sys.unraisablehook() now explicitly flush the file (usually sys.stderr). If file.flush() fails, sys.excepthook() silently ignores the error, whereas sys.unraisablehook() logs the new exception.
DinoV pushed a commit to DinoV/cpython that referenced this pull request
Jan 14, 2020This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters