Python equivalent to @lines = 'command';
Tim Hammerquist
tim at vegeta.ath.cx
Tue Dec 18 13:07:58 EST 2001
Fernando Pérez <fperez528 at yahoo.com> graced us by uttering:
[ snip ]
> could anyone comment on the benefits/differences between the
> popen() approach and using
> output = commands.getoutput(cmd) ?
>
> Or is getoutput() just a popen() call with another name?
According to my Python docs, the commands module is *nix-specific,
while os.popen() is notably cross-platform.
Tim Hammerquist
--
How dare the government intervene to stifle innovation in the computer
industry! That's Microsoft's job, dammit!
More information about the Python-list
mailing list