Skip to content

Output versions of scripts to stdout #63122

Closed

Description

@serhiy-storchaka
BPO 18922
Nosy @berkerpeksag, @serhiy-storchaka
Files
  • issue18922.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 = None
    closed_at = <Date 2013-09-05.14:47:29.931>
    created_at = <Date 2013-09-04.14:49:28.092>
    labels = ['easy', 'type-bug', 'library']
    title = 'Output versions of scripts to stdout'
    updated_at = <Date 2013-09-06.13:56:37.647>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2013-09-06.13:56:37.647>
    actor = 'python-dev'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-09-05.14:47:29.931>
    closer = 'serhiy.storchaka'
    components = ['Demos and Tools', 'Library (Lib)']
    creation = <Date 2013-09-04.14:49:28.092>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['31613']
    hgrepos = []
    issue_num = 18922
    keywords = ['patch', 'easy']
    message_count = 5.0
    messages = ['196922', '196942', '197003', '197004', '197070']
    nosy_count = 4.0
    nosy_names = ['python-dev', 'berker.peksag', 'serhiy.storchaka', 'nicola.palumbo']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue18922'
    versions = ['Python 3.4']

    Activity

    1. serhiy-storchaka commented on Sep 4, 2013

      @serhiy-storchaka
      MemberAuthor

      The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write their version strings to stderr. It should be changed to stdout for consistency with most common practice. See also bpo-18338 and bpo-18920.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-bugAn unexpected behavior, bug, or error
      on Sep 4, 2013
    3. nicolapalumbo commented on Sep 4, 2013

      nicolapalumbomannequin
      Mannequin

      Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write their version strings to stdout, and not to sderr.

      Applying the patch the stdout can be redirect
      /python.exe Lib/smtpd.py --version >> /dev/null

      Without the patch:
      /python.exe Lib/smtpd.py --version >> /dev/null
      Python SMTP proxy version 0.3

    4. python-dev commented on Sep 5, 2013

      python-devmannequin
      Mannequin

      New changeset e81699a6390c by Serhiy Storchaka in branch 'default':
      Issue bpo-18922: Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write
      http://hg.python.org/cpython/rev/e81699a6390c

    5. serhiy-storchaka commented on Sep 5, 2013

      @serhiy-storchaka
      MemberAuthor

      Thank you Nicola and Berker.

    6. python-dev commented on Sep 6, 2013

      python-devmannequin
      Mannequin

      New changeset 587bdb940524 by Eli Bendersky in branch 'default':
      Update whatsnew/3.4 wrt. --version going to stdout. bpo-18338, bpo-18920, bpo-18922
      http://hg.python.org/cpython/rev/587bdb940524

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

    No one assigned

      Labels

      easystdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions