Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    Roger, this is still waiting for the process to end. The way I can confirm this is happening, is by running a longer process like a system update and passing the information to the log. All lines in a 10 second running process are printed/written to the log at the same time Commented Jan 18, 2010 at 11:24
  • You're running into a buffer size problem; take my above code and change the command to ["find", "/"] and you will see output before that process ends. Commented Jan 18, 2010 at 16:50
  • I print(line.rstrip("\n")) and got TypeError: a bytes-like object is required, not 'str' in Python3, do you have some ideas? Commented Mar 28, 2019 at 3:33