This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients otst, pmpp, steven.daprano, vstinner
Date 2018-11-19.15:30:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542641415.69.0.788709270274.issue35274@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce the issue on Fedora 29 in gnome-terminal.

Python is not blocked at all. It's just your terminal which stops displaying new strings. Try:

import time
print("\x98")
with open("x", "w") as fp:
    fp.write("done\n")
    fp.flush()
print("wait")
time.sleep(5)
print("exit")

And see file "x" created even after print("\x98").

Sorry, I'm not interested to investigate the terminal behavior.
History
Date User Action Args
2018-11-19 15:30:15vstinnersetrecipients: + vstinner, steven.daprano, pmpp, otst
2018-11-19 15:30:15vstinnersetmessageid: <1542641415.69.0.788709270274.issue35274@psf.upfronthosting.co.za>
2018-11-19 15:30:15vstinnerlinkissue35274 messages
2018-11-19 15:30:15vstinnercreate