You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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=<Date2010-03-31.03:23:26.866>created_at=<Date2010-03-24.23:01:57.253>labels= ['type-bug', 'library']
title='Wrong link in xml.etree documentation'updated_at=<Date2010-03-31.17:50:33.832>user='https://bugs.python.org/manguswahberg'
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 “!=”?
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.
Activity
manguswahberg commentedon Mar 24, 2010
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
briancurtin commentedon Mar 25, 2010
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.
briancurtin commentedon Mar 31, 2010
Fixed in trunk (r79518), release26-maint (r79519), py3k (r79520), and release31-maint (r79521).
merwok commentedon Mar 31, 2010
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
briancurtin commentedon Mar 31, 2010
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.
briancurtin commentedon Mar 31, 2010
Made the change in r79529 through 79532.