This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: repr() function link on the built-in function documentation is incorrect
Type: behavior Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: docs@python, ezio.melotti, georg.brandl, piotr.dobrogost, python-dev, r.david.murray, vrutsky, xuhdev
Priority: normal Keywords:

Created on 2012-04-04 06:24 by xuhdev, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (10)
msg157462 - (view) Author: Hong Xu (xuhdev) Date: 2012-04-04 06:24
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
msg157480 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-04-04 14:19
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.
msg157542 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2012-04-05 07:04
Shows how it's a bad thing to have a builtin function and a module of the same name :)
msg157543 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-04-05 07:04
New changeset 4416efeb0163 by Georg Brandl in branch '2.7':
Closes #14489: correct link target.
http://hg.python.org/cpython/rev/4416efeb0163
msg166060 - (view) Author: Piotr Dobrogost (piotr.dobrogost) Date: 2012-07-21 20:09
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
msg166099 - (view) Author: Hong Xu (xuhdev) Date: 2012-07-22 02:46
I think this has been fixed. Where did you see the incorrect link?
msg166148 - (view) Author: Piotr Dobrogost (piotr.dobrogost) Date: 2012-07-22 16:40
The wrong link is still at http://docs.python.org/library/functions.html
msg183543 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-03-05 18:50
Confirm that this is not fixed.
msg183861 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-03-10 02:28
New changeset aea3167355fc by Ezio Melotti in branch '2.7':
#14489: fix wrong link.
http://hg.python.org/cpython/rev/aea3167355fc
msg183862 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-03-10 02:30
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:.
History
Date User Action Args
2022-04-11 14:57:28adminsetgithub: 58694
2013-03-10 02:30:46ezio.melottisetstatus: open -> closed
messages: + msg183862

assignee: docs@python -> ezio.melotti
resolution: fixed
stage: needs patch -> resolved
2013-03-10 02:28:42python-devsetmessages: + msg183861
2013-03-05 19:01:10ezio.melottisetnosy: + ezio.melotti
2013-03-05 18:51:48r.david.murraysetnosy: + vrutsky
2013-03-05 18:51:23r.david.murraylinkissue17356 superseder
2013-03-05 18:50:29r.david.murraysetstatus: closed -> open
resolution: fixed -> (no value)
messages: + msg183543

stage: resolved -> needs patch
2012-07-22 16:40:53piotr.dobrogostsetmessages: + msg166148
2012-07-22 02:46:35xuhdevsetmessages: + msg166099
2012-07-21 20:09:03piotr.dobrogostsetnosy: + piotr.dobrogost
messages: + msg166060
2012-04-05 07:04:33python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg157543

resolution: fixed
stage: resolved
2012-04-05 07:04:17georg.brandlsetnosy: + georg.brandl
messages: + msg157542
2012-04-04 14:19:02r.david.murraysettype: behavior

messages: + msg157480
nosy: + r.david.murray
2012-04-04 06:24:39xuhdevcreate