Message279016
I am using Python 2.7.10 on Windows 8. While writing some code in NodeJS I noticed the following behaviour: `python --version` prints its output to stderr instead of stdout.
In most cases this won't make any difference because both streams print to the screen. But if you want to handle the output streams separately it can cause confusion.
Here is a piece of code to reproduce this behaviour (requires nodeJs):
```
var exec = require('child_process').exec;
exec('python --version', function (err, stdout, stderr) {
console.log('stdout: ' + JSON.stringify(stdout));
console.log('stderr: ' + JSON.stringify(stderr));
}
``` |
|
Date |
User |
Action |
Args |
2016-10-20 07:01:05 | ctb | set | recipients:
+ ctb, paul.moore, tim.golden, zach.ware, steve.dower |
2016-10-20 07:01:05 | ctb | set | messageid: <1476946865.44.0.922931581834.issue28483@psf.upfronthosting.co.za> |
2016-10-20 07:01:05 | ctb | link | issue28483 messages |
2016-10-20 07:01:05 | ctb | create | |
|