STINNER Victor <vstin...@redhat.com> added the comment:
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. ---------- nosy: +vstinner resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35274> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com