[Tutor] commands.getoutput equivalent in subprocess
Pete O'Connell
pedrooconnell at gmail.com
Mon Mar 19 11:58:37 CET 2012
Ok thanks a lot.
Pete
On Mon, Mar 19, 2012 at 10:01 PM, Peter Otten <__peter__ at web.de> wrote:
>> Pete O'Connell wrote:
>
>> Hi, I am using Python 2.6 I can't use Python 3 in this particular
> situation.
>
> [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().
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
--
Pete
More information about the Tutor
mailing list