[issue14489] repr() function link on the built-in function documentation is incorrect
New submission from H Xu <xuhdev@gmail.com>: The `repr()` built-in function link in this page [ http://docs.python.org/library/functions.html ] should link to the built-in version of `repr()`. It should link to: http://docs.python.org/library/functions.html#repr However, it links to here: http://docs.python.org/library/repr.html#module-repr ---------- assignee: docs@python components: Documentation messages: 157462 nosy: H.Xu, docs@python priority: normal severity: normal status: open title: repr() function link on the built-in function documentation is incorrect versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
R. David Murray <rdmurray@bitdance.com> added the comment: This is only a problem in the 2.7 docs. I tried adding a .. py:currentmodule:: builtins directive to the page, hoping that would make all unqualified links local, but it didn't work. I think the fix will require someone with more Sphinx-foo than I have. ---------- nosy: +r.david.murray type: -> behavior _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
Georg Brandl <georg@python.org> added the comment: Shows how it's a bad thing to have a builtin function and a module of the same name :) ---------- nosy: +georg.brandl _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
Roundup Robot <devnull@psf.upfronthosting.co.za> added the comment: New changeset 4416efeb0163 by Georg Brandl in branch '2.7': Closes #14489: correct link target. http://hg.python.org/cpython/rev/4416efeb0163 ---------- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
Piotr Dobrogost <pd@bugs.python.dobrogost.net> added the comment: As of today the link is still not fixed although I guess it should have been due to the patch mentioned in http://bugs.python.org/issue14489#msg157543 ---------- nosy: +piotr.dobrogost _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
H Xu <xuhdev@gmail.com> added the comment: I think this has been fixed. Where did you see the incorrect link? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
Piotr Dobrogost <pd@bugs.python.dobrogost.net> added the comment: The wrong link is still at http://docs.python.org/library/functions.html ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
R. David Murray added the comment: Confirm that this is not fixed. ---------- resolution: fixed -> stage: committed/rejected -> needs patch status: closed -> open _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
Changes by R. David Murray <rdmurray@bitdance.com>: ---------- nosy: +vrutsky _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- nosy: +ezio.melotti _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
Roundup Robot added the comment: New changeset aea3167355fc by Ezio Melotti in branch '2.7': #14489: fix wrong link. http://hg.python.org/cpython/rev/aea3167355fc ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
Ezio Melotti added the comment: The s/:func:`repr`/:func:`.repr`/ committed by Georg got lost in 07b3fc67bf45, however reintroducing it results in this warning: "Doc/library/functions.rst:1182: WARNING: duplicate object description of repr, other instance in Doc/library/repr.rst, use :noindex: for one of them" Even after adding the :noindex: the repr() in the table wasn't a link, so I ended up using a workaround that fixed the link and didn't need the :noindex:. ---------- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue14489> _______________________________________
participants (6)
-
Ezio Melotti
-
Georg Brandl
-
H Xu
-
Piotr Dobrogost
-
R. David Murray
-
Roundup Robot