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

module is not displayed by cgitb.html #77437

Closed
sblondon mannequin opened this issue Apr 10, 2018 · 5 comments
Closed

module is not displayed by cgitb.html #77437

sblondon mannequin opened this issue Apr 10, 2018 · 5 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@sblondon
Copy link
Mannequin

sblondon mannequin commented Apr 10, 2018

BPO 33256
Nosy @serhiy-storchaka, @sblondon, @miss-islington
PRs
  • bpo-33256: Replace square brackets around python object repr to display it in html #6442
  • [3.7] bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442) #6637
  • [3.6] bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442) #6638
  • [2.7] bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442). #6650
  • Files
  • traceback_cgi.gif
  • 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-04-30.08:35:18.813>
    created_at = <Date 2018-04-10.11:59:39.412>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'module is not displayed by cgitb.html'
    updated_at = <Date 2018-04-30.08:35:18.715>
    user = 'https://github.com/sblondon'

    bugs.python.org fields:

    activity = <Date 2018-04-30.08:35:18.715>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-04-30.08:35:18.813>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2018-04-10.11:59:39.412>
    creator = 'sblondon'
    dependencies = []
    files = ['47528']
    hgrepos = []
    issue_num = 33256
    keywords = ['patch']
    message_count = 5.0
    messages = ['315167', '315902', '315911', '315912', '315939']
    nosy_count = 3.0
    nosy_names = ['serhiy.storchaka', 'sblondon', 'miss-islington']
    pr_nums = ['6442', '6637', '6638', '6650']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue33256'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7', 'Python 3.8']

    @sblondon
    Copy link
    Mannequin Author

    sblondon mannequin commented Apr 10, 2018

    The html produced by cgitb.html() does not display <module> because the square brackets are interpreted as a html tag (see the picture in attachement).
    This bug occurs if the code is called directly in the module, not inside a function or a class.

    @sblondon sblondon mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Apr 10, 2018
    @serhiy-storchaka
    Copy link
    Member

    New changeset 7d68bfa by Serhiy Storchaka (sblondon) in branch 'master':
    bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442)
    7d68bfa

    @miss-islington
    Copy link
    Contributor

    New changeset 736f17f by Miss Islington (bot) in branch '3.7':
    bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442)
    736f17f

    @miss-islington
    Copy link
    Contributor

    New changeset ef91552 by Miss Islington (bot) in branch '3.6':
    bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442)
    ef91552

    @serhiy-storchaka
    Copy link
    Member

    New changeset 07ad02f by Serhiy Storchaka in branch '2.7':
    [2.7] bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442). (GH-6650)
    07ad02f

    @serhiy-storchaka serhiy-storchaka added 3.7 (EOL) end of life 3.8 only security fixes labels Apr 30, 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.7 (EOL) end of life 3.8 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants