In article <mailman.2142.1271960906.23598.python-l...@python.org>,
J  <dreadpiratej...@gmail.com> wrote:
>
>Say I had a file, foo.txt that I wanted to read from, only one time
>and only read.
>
>So what's the difference between this:
>
>mylist = Popen(["cat","foo.txt"], stdout=PIPE).communicate()[0].splitlines()
>
>Is there a reason why you would not use subprocess.Popen for this,
>other than just not relying on external programs to perfrom the task?

http://uuoc.com/
-- 
Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to