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

cgitb: remove parentheses when the error is in module #77492

Closed
sblondon mannequin opened this issue Apr 18, 2018 · 2 comments
Closed

cgitb: remove parentheses when the error is in module #77492

sblondon mannequin opened this issue Apr 18, 2018 · 2 comments
Labels
3.8 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@sblondon
Copy link
Mannequin

sblondon mannequin commented Apr 18, 2018

BPO 33311
Nosy @serhiy-storchaka, @sblondon
PRs
  • bpo-33311: Do not display parameters displayed in parentheses for module call #6522
  • bpo-33311: Do not display parameters displayed in parentheses for module call #6677
  • 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 2018-05-09.09:39:56.817>
    created_at = <Date 2018-04-18.18:39:52.327>
    labels = ['3.8', 'type-feature', 'library']
    title = 'cgitb: remove parentheses when the error is in module'
    updated_at = <Date 2018-05-09.09:39:56.816>
    user = 'https://github.com/sblondon'

    bugs.python.org fields:

    activity = <Date 2018-05-09.09:39:56.816>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-05-09.09:39:56.817>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2018-04-18.18:39:52.327>
    creator = 'sblondon'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33311
    keywords = ['patch']
    message_count = 2.0
    messages = ['315459', '316321']
    nosy_count = 2.0
    nosy_names = ['serhiy.storchaka', 'sblondon']
    pr_nums = ['6522', '6677']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue33311'
    versions = ['Python 3.8']

    @sblondon
    Copy link
    Mannequin Author

    sblondon mannequin commented Apr 18, 2018

    The cgitb module displays a traceback in text or html.

    When a module is called, there are no parameters (displayed as '()'). I
    think they are unnecessary and the parentheses should be removed.

    ### example for the text version ###
    $ python3 demo.py
    [...]
    /home/stephane/src/cgitest/demo.py in <module>()
    7 def func1(a, b): ^-- to be removed?
    [...]
    ### end of example ###

    It occurs in both text and html versions.

    @sblondon sblondon mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Apr 18, 2018
    @serhiy-storchaka
    Copy link
    Member

    New changeset 8cf4b34 by Serhiy Storchaka (sblondon) in branch 'master':
    bpo-33311: Do not display parameters displayed in parentheses for module call. (GH-6677)
    8cf4b34

    @serhiy-storchaka serhiy-storchaka added the 3.8 (EOL) end of life label May 9, 2018
    @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
    3.8 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant