This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | mmokrejs |
|---|---|
| Recipients | georg.brandl, mmokrejs |
| Date | 2008年06月29日.09:26:13 |
| SpamBayes Score | 0.02015639 |
| Marked as misclassified | No |
| Message-id | <1214731574.46.0.694544049658.issue3235@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Although I do appreciate that you try to improve python it is not clear to me from http://docs.python.org/lib/module-subprocess.html: 1. Why the old functions have been deprecated 2. I can pipe together two processes. But how can I use pipe to feed the first process of the two? The example at http://docs.python.org/lib/node535.html is not sufficient. Show how to bind together cat(1) and tr(1). Cat should read from STDIN and pass the same to STDOUT, being read by tr(1). 3. Nowhere is explained what this magic really does: output = p2.communicate()[0] I figured out the result is e.g. a string of '\n' separated lines. What is not clear whether at this very moment the processes get started and whether one can still write on input to them. It seems not, the p1.stdin has to be already populated with data. Thanks. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年06月29日 09:26:14 | mmokrejs | set | spambayes_score: 0.0201564 -> 0.02015639 recipients: + mmokrejs, georg.brandl |
| 2008年06月29日 09:26:14 | mmokrejs | set | spambayes_score: 0.0201564 -> 0.0201564 messageid: <1214731574.46.0.694544049658.issue3235@psf.upfronthosting.co.za> |
| 2008年06月29日 09:26:13 | mmokrejs | link | issue3235 messages |
| 2008年06月29日 09:26:13 | mmokrejs | create | |