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 ctb
Recipients ctb, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-10-20.07:01:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476946865.44.0.922931581834.issue28483@psf.upfronthosting.co.za>
In-reply-to
Content
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));
}
```
History
Date User Action Args
2016-10-20 07:01:05ctbsetrecipients: + ctb, paul.moore, tim.golden, zach.ware, steve.dower
2016-10-20 07:01:05ctbsetmessageid: <1476946865.44.0.922931581834.issue28483@psf.upfronthosting.co.za>
2016-10-20 07:01:05ctblinkissue28483 messages
2016-10-20 07:01:05ctbcreate