Skip to content

Wrong link in xml.etree documentation #52472

Closed

Description

@manguswahberg
BPO 8225
Nosy @birkenfeld, @ezio-melotti, @merwok, @briancurtin
Files
  • issue8225.diff: patch against trunk
  • 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/briancurtin'
    closed_at = <Date 2010-03-31.03:23:26.866>
    created_at = <Date 2010-03-24.23:01:57.253>
    labels = ['type-bug', 'library']
    title = 'Wrong link in xml.etree documentation'
    updated_at = <Date 2010-03-31.17:50:33.832>
    user = 'https://bugs.python.org/manguswahberg'

    bugs.python.org fields:

    activity = <Date 2010-03-31.17:50:33.832>
    actor = 'brian.curtin'
    assignee = 'brian.curtin'
    closed = True
    closed_date = <Date 2010-03-31.03:23:26.866>
    closer = 'brian.curtin'
    components = ['Library (Lib)']
    creation = <Date 2010-03-24.23:01:57.253>
    creator = 'mangus.wahberg'
    dependencies = []
    files = ['16639']
    hgrepos = []
    issue_num = 8225
    keywords = ['patch']
    message_count = 6.0
    messages = ['101655', '101671', '101974', '102018', '102021', '102023']
    nosy_count = 5.0
    nosy_names = ['georg.brandl', 'ezio.melotti', 'eric.araujo', 'brian.curtin', 'mangus.wahberg']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue8225'
    versions = ['Python 2.6', 'Python 3.1', 'Python 2.7', 'Python 3.2']

    Activity

    1. manguswahberg commented on Mar 24, 2010

      manguswahbergmannequin
      MannequinAuthor

      When using the interactive python help and entering xml.etree the help page contains a link faulty link to the online documentation.

      The link in the help page is:

      MODULE DOCS
      http://docs.python.org/library/xml.etree

      But the correct link is:
      http://docs.python.org/library/xml.etree.elementtree

    2. added
      docs
      on Mar 24, 2010
    3. briancurtin commented on Mar 25, 2010

      @briancurtin
      Member

      I believe the problem is with pydoc. In the case of xml.etree, I don't think it should be displaying anything for MODULE DOCS.

      help(xml.etree.ElementTree) does display the proper link.

      The attached patch and test fixes the problem.

    4. added
      stdlib
      performance
      and removed
      docs
      on Mar 25, 2010
    5. added
      type-bug
      and removed
      performance
      on Mar 25, 2010
    6. briancurtin commented on Mar 31, 2010

      @briancurtin
      Member

      Fixed in trunk (r79518), release26-maint (r79519), py3k (r79520), and release31-maint (r79521).

    7. merwok commented on Mar 31, 2010

      @merwok
      Member

      Hello

      Is it ok that the code checks “object.__name__ not in ('xml.etree')”? Looks like a failed single-item tuple to me. Besides, what about using a simple “!=”?

      Regards

    8. briancurtin commented on Mar 31, 2010

      @briancurtin
      Member

      Good catch. That was intended to be a single tuple because the other check above is a tuple, but because this really only checks one thing it could be a != until its necessary to be a tuple. I'll fix it.

    9. briancurtin commented on Mar 31, 2010

      @briancurtin
      Member

      Made the change in r79529 through 79532.

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

    stdlibtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions