News for hackers. Stuff that matters.
Re:Unfortunate Python by tocomment on Tuesday December 20, 2011 @07:40AM (#3373207)
I completely agree about subprocess. One thing I like about Perl is that it's dead easy to make a system call. I wish subprocess had a shortcut that's easy to remember/use.
Re:Unfortunate Python by icebraining on Tuesday December 20, 2011 @07:45AM (#3373219)

    run = lambda cmd: subprocess.check_output(cmd, shell=True)

    data = run("ps -e")
Re:Unfortunate Python by lloeki on Tuesday December 20, 2011 @08:07AM (#3373273)
I do something which looks largely the same, except I call it backtick