WHAT is [0] in subprocess.Popen(blah).communicate()[0]

Gabriel Genellina gagsl-py at yahoo.com.ar
Thu Dec 14 18:44:59 EST 2006


At Thursday 14/12/2006 15:30, Neil Cerutti wrote:

>I like using pattern matching in these simple cases:
>
>   last_line, _ = subprocess.Popen([r"tail","-n 1", "x.txt"],
>           stdout=subprocess.PIPE).communicate()

pattern matching???


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list