Martin <martin.schroe...@nerdluecht.de> added the comment:
Yes, I think it should at least be documented. But then it practically says: "Do not use print in your library because it might be used in a threading context" This sounds unacceptable to me. It would be great to "just make it work". > I debugged it a bit and I think the race may be between your print statement > and the util._flush_std_streams() Why would print deadlock with a flush? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41539> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com