Commits

Vinay Sajip committed 117edd7 Draft

Routine update.

Comments (0)

Files changed (1)

docs/tutorial.rst

         t = threading.Thread(target=progress, args=(p.stdout, options))
         t.start()
         while(p.returncodes[0] is None):
-            # We could do other useful work here.
+            # We could do other useful work here. If we have no useful
+            # work to do here, we can call readline() and process it
+            # directly in this loop, instead of creating a thread to do it in.
             p.commands[0].poll()
             time.sleep(0.05)
         t.join()