News for hackers. Stuff that matters.
Re:“It's The Future” by Spiritus on Wednesday August 17, 2016 @09:19AM (#12304412)

    from subprocess import Popen, PIPE
    p1 = Popen(["foo"], stdout=PIPE)
    p2 = Popen(["bar"], stdin=p1.stdout, stdout=PIPE)
    p1.stdout.close()  # Allow p1 to receive a SIGPIPE if p2 exits.
    output, _ = p2.communicate()
https://docs.python.org/3.5/library/subprocess.html#replacin...
Re:“It's The Future” by mbrock on Wednesday August 17, 2016 @09:25AM (#12304462)
Thanks. Maybe I'll make a public Gist that's a kind of "foo | bar" cookbook for different languages...
Re:“It's The Future” by lmm on Wednesday August 17, 2016 @10:31AM (#12304976)
What you actually do in Python is use https://github.com/kennethreitz/envoy
Re:“It's The Future” by mbrock on Wednesday August 17, 2016 @11:18AM (#12305333)
That seems to recommend just calling the shell to do pipelines? Makes sense... Or maybe it parses that syntax itself?
Re:“It's The Future” by lmm on Wednesday August 17, 2016 @11:45AM (#12305536)
I believe it parses it itself.
Re:“It's The Future” by catchmrbharath on Wednesday August 17, 2016 @06:32PM (#12308985)
Looks like its not maintained.