[IPython-dev] genutils.getoutput considered harmful

Ville Vainio vivainio at gmail.com
Fri Feb 10 09:23:00 EST 2006

I noticed that genutils.getoutput doesn't work in win32 at all (it
uses commands.getoutput, which is posix-only).

It hasn't been a huge problem because most places use
genutils.getoutputerror(), which uses proper popen calls. I only
noticed this by trying to do

echo $sout("ls")

to simulate

echo `ls`

I think I'll port getoutput over to use plain popen stuff which works
in all platforms.

Ville Vainio - http://tinyurl.com/2prnb
http://vainio.blogspot.com - g[mail | talk]='vivainio'

More information about the IPython-dev mailing list