Pablo Galindo Salgado <pablog...@gmail.com> added the comment:
The problem is that https://github.com/python/cpython/blob/master/Python/pythonrun.c#L1074 doesn't take a strong reference to sys.stderr but code underneath can potentially release the GIL and remove the reference that keeps the object alive. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43660> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com