In article <[email protected]>, J <[email protected]> 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 ([email protected]) <*> 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
