Issue 28160: Python -V and --version output to stderr instead of stdout (original) (raw)
Issue28160
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) * ![]() |
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:36 | admin | set | github: 72347 |
2016-10-20 07:03:24 | SilentGhost | link | issue28483 superseder |
2016-09-15 21:06:08 | barry | set | nosy: + barry |
2016-09-15 19:58:45 | Yaron Goland | set | messages: + |
2016-09-15 01:06:06 | berker.peksag | set | status: open -> closednosy: + berker.peksagmessages: + resolution: rejectedstage: resolved |
2016-09-14 23:44:12 | Yaron Goland | set | messages: + |
2016-09-14 23:36:51 | Yaron Goland | create |