[issue41539] print blocks with multiprocessing and buffered output
Martin
report at bugs.python.org
Sat Jun 26 02:59:56 EDT 2021
Martin <martin.schroeder at 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 <report at bugs.python.org>
<https://bugs.python.org/issue41539>
_______________________________________
More information about the Python-bugs-list
mailing list