[docs] [issue10728] argparse.ArgumentParser.print_help uses sys.stdout
report at bugs.python.org
Fri Feb 14 13:25:02 CET 2014
Jan-Philip Gehrcke added the comment:
The version action currently writes to stderr. The _VersionAction(Action)'s __call__() method finishes off with
and parser.exit() by default writes to stderr.
Here, Steven says "Help is definitely intended to print to stdout." and I expected the same to happen regarding the version information. Why should it go to stderr?
I see that this is a minor problem and only if someone here agrees I would open an issue for that.
Python tracker <report at bugs.python.org>
More information about the docs