Skip to content

Show sys.version when -V option is supplied twice. #72718

Closed

Description

@methane
BPO 28532
Nosy @vstinner, @ned-deily, @methane, @vadmium, @matrixise
PRs
  • [Do Not Merge] Convert Misc/NEWS so that it is managed by towncrier #552
  • Files
  • verbose-version.patch
  • verbose-version2.patch
  • verbose-version3.patch
  • vervose-version-doc.patch
  • vervose-version-doc2.patch
  • Note: 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:

    assignee = 'https://github.com/methane'
    closed_at = <Date 2016-11-24.08:22:19.184>
    created_at = <Date 2016-10-25.17:51:01.399>
    labels = ['interpreter-core', 'easy', 'type-bug', '3.7']
    title = 'Show sys.version when -V option is supplied twice.'
    updated_at = <Date 2017-03-31.16:36:12.215>
    user = 'https://github.com/methane'

    bugs.python.org fields:

    activity = <Date 2017-03-31.16:36:12.215>
    actor = 'dstufft'
    assignee = 'methane'
    closed = True
    closed_date = <Date 2016-11-24.08:22:19.184>
    closer = 'methane'
    components = ['Interpreter Core']
    creation = <Date 2016-10-25.17:51:01.399>
    creator = 'methane'
    dependencies = []
    files = ['45221', '45272', '45276', '45585', '45608']
    hgrepos = []
    issue_num = 28532
    keywords = ['patch', 'easy']
    message_count = 16.0
    messages = ['279428', '279705', '279706', '279707', '279710', '279714', '279720', '281345', '281348', '281349', '281351', '281352', '281392', '281555', '281586', '281617']
    nosy_count = 6.0
    nosy_names = ['vstinner', 'ned.deily', 'methane', 'python-dev', 'martin.panter', 'matrixise']
    pr_nums = ['552']
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue28532'
    versions = ['Python 3.6', 'Python 3.7']

    Activity

    1. methane commented on Oct 25, 2016

      @methane
      MemberAuthor

      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.
      Please see, especially my English.

    2. self-assigned this
      on Oct 25, 2016
    3. added
      interpreter-core(Objects, Python, Grammar, and Parser dirs)
      type-bugAn unexpected behavior, bug, or error
      on Oct 25, 2016
    4. matrixise commented on Oct 30, 2016

      @matrixise
      Member

      " -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.

    5. methane commented on Oct 30, 2016

      @methane
      MemberAuthor

      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

    6. matrixise commented on Oct 30, 2016

      @matrixise
      Member

      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()

    7. vadmium commented on Oct 30, 2016

      @vadmium
      Member

      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.

    8. vadmium commented on Oct 30, 2016

      @vadmium
      Member

      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.

    9. methane commented on Oct 30, 2016

      @methane
      MemberAuthor

      Oh, it seems I hurried too much.
      Thanks to pointing it out.

    10. methane commented on Nov 21, 2016

      @methane
      MemberAuthor

      I noticed today is code freeze for final beta.
      Is this too late for 3.6.0?

    11. vadmium commented on Nov 21, 2016

      @vadmium
      Member

      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?

    12. vstinner commented on Nov 21, 2016

      @vstinner
      Member

      verbose-version3.patch LGTM and seems useful to me.

    13. python-dev commented on Nov 21, 2016

      python-devmannequin
      Mannequin

      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

    14. methane commented on Nov 21, 2016

      @methane
      MemberAuthor

      Thanks for review.
      Since doc update is allowed after final beta, I committed verbose-version3.patch for now.

      Here is patch for doc.

    15. vadmium commented on Nov 21, 2016

      @vadmium
      Member

      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\>.

    16. methane commented on Nov 23, 2016

      @methane
      MemberAuthor

      Elvis agreed to add "Other Improvements" section. (http://bugs.python.org/issue28635#msg281486)

      Here is new patch.

    17. vadmium commented on Nov 23, 2016

      @vadmium
      Member

      Looks good to me

    18. python-dev commented on Nov 24, 2016

      python-devmannequin
      Mannequin

      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

    19. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of lifeeasyinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions