[Tutor] commands.getoutput equivalent in subprocess

Peter Otten __peter__ at web.de
Mon Mar 19 10:01:42 CET 2012

> Pete O'Connell wrote:

> Hi, I am using Python 2.6 I can't use Python 3 in this particular 

[Please reply to the list, not in private mail.]

You can continue to use commands.getoutput() in 2.6 and 2.7, and once you 
are ready to make the jump to 3.x replace it with subprocess.getoutput().

More information about the Tutor mailing list