os.popen--which one to use?

danmcleran at yahoo.com danmcleran at yahoo.com
Tue Apr 3 21:00:13 CEST 2007


On Apr 3, 12:53 pm, Kevin Walzer <k... at codebykevin.com> wrote:
> I'm confused by the number of variations on "popen" that Python offers.
>
> I'm using os.popen in my programs without difficulty. Is this wrong?
> Should I be using popen 2, popen3, etc.? I'm not clear on what the
> advantages of popen2, 3 etc. are: they seem a lot more complicated.
>
> --
> Kevin Walzer
> Code by Kevinhttp://www.codebykevin.com


Check out subprocess. It's meant to be a replacement for all of the
above.




More information about the Python-list mailing list