"Avell Diroll" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 3c273 wrote: > > I was just trying to learn how to use .communicate() and all of the examples > > I see have [0] after .communicate(). What is the significance of the [0]? > > > From the Python Library Reference > (http://docs.python.org/lib/node239.html), you learn that the method > communicate() from the subprocess.Popen() class returns a tuple > containing the standard output as first item and the standard error of > the child process as second item. So the [0] in the example is for > selecting the first item of the tuple ...
Thank you for taking the time to make that clear for me. I did read the docs, I just didn't really understand what communicate() did, but I do now. Thanks again. Louis -- http://mail.python.org/mailman/listinfo/python-list