New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show sys.version when -V option is supplied twice. #72718
Comments
As discussed on python-dev, this patch adds -VV option to python cmdline. $ ./python -V
Python 3.6.0b2+
$ ./python -VV
Python 3.6.0b2+ (3.6:84a3c5003510+, Oct 26 2016, 02:47:38)
[GCC 6.2.0 20161005] The patch includes doc and man update. |
" -V : print the Python version number and exit (also --version)\n\ Why do you indicate "multiple times" because there are only 2 possibilites, -V or -VV, no more. |
Since I'm not good English writer, I copied & modified from -v option. -v : verbose (trace import statements); also PYTHONVERBOSE=x |
yep, but in this case, just add -VV will add more details about the current revision. About -VVV or -VV, yes, it's similar because the same C code version >= 2, Py_GetVersion() |
I left some review comments. Also (as a native English speaker), I think it is okay to drop the third line about “multiple times”. You already say it may be given twice in the line above. |
Sorry, I should have said: the other two files (Misc/python.man and Modules/main.c) also need an extra “the”, like you changed in Doc/using/cmdline.rst. Other than that, it looks okay to me. But I guess you could add a quick test case in Lib/test/test_cmd_line.py. There’s already one for single -V and --version. |
Oh, it seems I hurried too much. |
I noticed today is code freeze for final beta. |
Ned indicated he was open to the idea: <http://mid.mail-archive.com/nu39u2$9ri$1@blaine.gmane.org\>. Maybe just double check; there’s still a few hours left! I’m not sure, but maybe there should be “.. versionchanged:: 3.6” in the RST documentation, and an entry in What’s New? |
verbose-version3.patch LGTM and seems useful to me. |
New changeset fc6bb69cec05 by INADA Naoki in branch '3.6': New changeset 02aa667bd02d by INADA Naoki in branch 'default': |
Thanks for review. Here is patch for doc. |
The text looks okay. I’m not sure about putting it in the “Porting to Python 3.6” section, but there doesn’t seem to be a more appropriate existing heading. Perhaps we need a new heading, say “Other Improvement”, near “Optimizations” and “Build and C API Changes”. A previous What’s New had <https://docs.python.org/3.4/whatsnew/3.4.html#other-improvements\>. |
Elvis agreed to add "Other Improvements" section. (http://bugs.python.org/issue28635#msg281486) Here is new patch. |
Looks good to me |
New changeset 5a29ab5a4785 by INADA Naoki in branch '3.6': New changeset 3f9f13077ca8 by INADA Naoki in branch 'default': |
Misc/NEWS
so that it is managed by towncrier #552Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: