News for hackers. Stuff that matters.
Re: by anonfoobar1 on Tuesday January 17, 2012 @09:28PM (#3477574)
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.