Skip to content
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

Output versions of scripts to stdout #63122

Closed
serhiy-storchaka opened this issue Sep 4, 2013 · 5 comments
Closed

Output versions of scripts to stdout #63122

serhiy-storchaka opened this issue Sep 4, 2013 · 5 comments
Labels
easy stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

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']

    @serhiy-storchaka
    Copy link
    Member Author

    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.

    @serhiy-storchaka serhiy-storchaka added stdlib Python modules in the Lib dir easy type-bug An unexpected behavior, bug, or error labels Sep 4, 2013
    @nicolapalumbo
    Copy link
    Mannequin

    nicolapalumbo mannequin commented Sep 4, 2013

    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

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 5, 2013

    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

    @serhiy-storchaka
    Copy link
    Member Author

    Thank you Nicola and Berker.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 6, 2013

    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

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    easy stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant