Can someone tell me what is the reason "[0]" appears after
".communicate()"

For example:
last_line=subprocess.Popen([r"tail","-n 1", "x.txt"],
stdout=subprocess.PIPE).communicate()[0]

Thank you.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to