Gabriel Genellina 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???

http://www.haskell.org/tutorial/patterns.html

(the syntax's called "target lists" in Python)

</F>

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

Reply via email to