1 comment

[ 3.5 ms ] story [ 13.1 ms ] thread
This seems like an excellent way to write shell scripts in Python. I never consciously realized it before, but I've always wanted something like this. I have a strong distaste for Python's subprocess library; for example Popen.wait() is liable to deadlock under certain conditions http://docs.python.org/library/subprocess.html . It's not immediately clear to me from the source code if this module avoids that pitfall.