Skip to main content

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
  • 1
    Yep, but now that Python 3.1 is out (with a much better implementation of the whole I/O stack) there's no reason to stick with 3.0 (it was definitely a transitional version;-). Commented Jul 6, 2009 at 2:16
  • 1
    for line in iter(proc.stdout.readline, ''): print ">>>", line, could be used instead of the while loop on Python 2. Commented Dec 21, 2013 at 5:56
  • People talking about impractical Python 3 upgrade in 2009: Python 3 is bad... . Everyone else in 2024: Why would you use Python 2? Are you using legacy computers or something. Commented Mar 26, 2024 at 9:35