[Python-ideas] easier subprocess piping and redirection
Timo Kluck
tkluck at infty.nl
Wed Feb 27 13:20:17 CET 2013
2013/2/27 Stefan Drees <stefan at drees.name>:
>
> thanks a lot for sharing this. How does this relate to plumbum :-?
>
> >>> from plumbum.cmd import echo, head
> >>> chain = echo['a\nb'] | head['-n1']
> >>> chain()
> u'a\n'
Fantastic! I kind of guessed that it would have existed already, but
didn't know where to find it. Thanks for pointing this out!
Timo
More information about the Python-ideas
mailing list