You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show sys.version when -V option is supplied twice. #72718
" -V : print the Python version number and exit (also --version)\n\
+ when given twice, print more information about build\n\
+ can be supplied multiple times to show more information\n\"
Why do you indicate "multiple times" because there are only 2 possibilites, -V or -VV, no more.
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.
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.
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\>.
Activity
methane commentedon Oct 25, 2016
As discussed on python-dev, this patch adds -VV option to python cmdline.
The patch includes doc and man update.
Please see, especially my English.
matrixise commentedon Oct 30, 2016
" -V : print the Python version number and exit (also --version)\n\
+ when given twice, print more information about build\n\
+ can be supplied multiple times to show more information\n\"
Why do you indicate "multiple times" because there are only 2 possibilites, -V or -VV, no more.
methane commentedon Oct 30, 2016
Since I'm not good English writer, I copied & modified from -v option.
-VVV is same to -VV, similar to -vvv is same to -vv.
-v : verbose (trace import statements); also PYTHONVERBOSE=x
can be supplied multiple times to increase verbosity
matrixise commentedon Oct 30, 2016
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()
vadmium commentedon Oct 30, 2016
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.
vadmium commentedon Oct 30, 2016
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.
methane commentedon Oct 30, 2016
Oh, it seems I hurried too much.
Thanks to pointing it out.
methane commentedon Nov 21, 2016
I noticed today is code freeze for final beta.
Is this too late for 3.6.0?
vadmium commentedon Nov 21, 2016
Ned indicated he was open to the idea: <http://mid.mail-archive.com/[email protected]\>. 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?
vstinner commentedon Nov 21, 2016
verbose-version3.patch LGTM and seems useful to me.
python-dev commentedon Nov 21, 2016
New changeset fc6bb69cec05 by INADA Naoki in branch '3.6':
Issue bpo-28532: Show sys.version when -V option is supplied twice
https://hg.python.org/cpython/rev/fc6bb69cec05
New changeset 02aa667bd02d by INADA Naoki in branch 'default':
Issue bpo-28532: Show sys.version when -V option is supplied twice
https://hg.python.org/cpython/rev/02aa667bd02d
methane commentedon Nov 21, 2016
Thanks for review.
Since doc update is allowed after final beta, I committed verbose-version3.patch for now.
Here is patch for doc.
vadmium commentedon Nov 21, 2016
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\>.
methane commentedon Nov 23, 2016
Elvis agreed to add "Other Improvements" section. (http://bugs.python.org/issue28635#msg281486)
Here is new patch.
vadmium commentedon Nov 23, 2016
Looks good to me
python-dev commentedon Nov 24, 2016
New changeset 5a29ab5a4785 by INADA Naoki in branch '3.6':
Issue bpo-28532: Add what's new entry for python -VV option
https://hg.python.org/cpython/rev/5a29ab5a4785
New changeset 3f9f13077ca8 by INADA Naoki in branch 'default':
Issue bpo-28532: Add what's new entry for python -VV option
https://hg.python.org/cpython/rev/3f9f13077ca8