[Tutor] Running external commands from Python

Luke Paireepinart rabidpoobear at gmail.com
Sat Jun 26 03:50:16 CEST 2010


On Fri, Jun 25, 2010 at 8:43 PM, David Hutto <smokefloat at gmail.com> wrote:
> On Fri, Jun 25, 2010 at 9:37 PM, Randy Kao <randykao at gmail.com> wrote:
>> Thanks for the great and quick feedback from everyone!
>> That definitely clears things up.
>> -Randy
>
> And I was like...me too.

Just to clarify, it looks like subprocess is intended to replace ALL
of the previously-mentioned commands, even os.system.  So in a sense
they are all obsolete.
Please see http://docs.python.org/library/subprocess.html for more information.

Also, this list is awesome.  Make much use of it.  There haven't been
enough posts lately!
-Luke


More information about the Tutor mailing list