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.

classification
Title: Python -V and --version output to stderr instead of stdout
Type: behavior Stage: resolved
Components: macOS Versions: Python 2.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: Yaron Goland, barry, berker.peksag, ned.deily, ronaldoussoren
Priority: normal Keywords:

Created on 2016-09-14 23:36 by Yaron Goland, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg276496 - (view) Author: Yaron Goland (Yaron Goland) Date: 2016-09-14 23:36
When running python -V or --version the output goes to stderr instead of stdout. Unless python thinks its version is an err shouldn't the result go to stdout?
msg276497 - (view) Author: Yaron Goland (Yaron Goland) Date: 2016-09-14 23:44
To be fair it turns out that Java also outputs its version to stderr. Still seems wrong. It's not an error!
msg276500 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-09-15 01:06
Thanks for the report. This was already done in Python 3.4. See https://docs.python.org/dev/whatsnew/3.4.html#changes-in-python-command-behavior and issue 18338 for details. Backporting this to 2.7 would break backwards compatibility so that means we can't change the behavior of python -V in a bugfix release.
msg276609 - (view) Author: Yaron Goland (Yaron Goland) Date: 2016-09-15 19:58
Fair enough. Thanks for looking at it!
History
Date User Action Args
2022-04-11 14:58:36adminsetgithub: 72347
2016-10-20 07:03:24SilentGhostlinkissue28483 superseder
2016-09-15 21:06:08barrysetnosy: + barry
2016-09-15 19:58:45Yaron Golandsetmessages: + msg276609
2016-09-15 01:06:06berker.peksagsetstatus: open -> closed

nosy: + berker.peksag
messages: + msg276500

resolution: rejected
stage: resolved
2016-09-14 23:44:12Yaron Golandsetmessages: + msg276497
2016-09-14 23:36:51Yaron Golandcreate