how to get command output using python

Arnau Sanchez arnau at ehas.org
Thu Aug 9 16:37:06 EDT 2007


kyosohma at gmail.com escribió:

>> Any non cross-platform module should be avoided unless absolutely necessary.
>>
>> Subprocess is the right module to use.
>>
>> arnau
> 
> You forgot to mention that subprocess replaces commands, so in effect,
> commands is deprecated anyway.

It was implicit :-)

Anyway, these modules ("commands", "popen2", ...) are not officially deprecated 
(at least in 2.5), so it's not strange that newcomers sometimes choose (wrongly) 
them.




More information about the Python-list mailing list