Will subprocess eventually deprecate popen2 ?

D

Daniel Klein

I have a few Python programs that use popen2, and they work quite
nicely and dependably, so I don't really have any reason to change
them to use the new subprocess module...unless of course there any
future plans to deprecate popen2.

Is this something I will have to plan for ?
 
F

Fredrik Lundh

Daniel said:
I have a few Python programs that use popen2, and they work quite
nicely and dependably, so I don't really have any reason to change
them to use the new subprocess module...unless of course there any
future plans to deprecate popen2.

definitely not in the 2.X series. as for 3.X, nobody knows -- but chances
are that even if the low-level support for popen2 disapperas, Python will
ship with a popen2 implementation that delegates to subprocess.

or you can write such an adapter yourself, the day you'll find that you want
to upgrade to a fancy new Python version that doesn't have it. it'll take you
30 seconds:

http://docs.python.org/lib/node539.html

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top