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: Permalinks to underscored documentation entries don't work.
Type: behavior Stage:
Components: Documentation Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: AlexWaygood, Fabian Dill, docs@python, eric.araujo
Priority: normal Keywords:

Created on 2021-12-13 13:14 by Fabian Dill, last changed 2022-04-11 14:59 by admin.

Messages (3)
msg408451 - (view) Author: Fabian Dill (Fabian Dill) Date: 2021-12-13 13:14
As an example, go to https://docs.python.org/3/library/constants.html and request a permalink to __debug__. The link you get will not jump to it.
The link I get is https://docs.python.org/3/library/constants.html#debug__
msg408452 - (view) Author: Alex Waygood (AlexWaygood) * (Python triager) Date: 2021-12-13 13:19
I can't reproduce this -- the permalink to __debug__ that I get is the same as the one you have posted here, and works fine for me on my laptop, phone and iPad.
msg408809 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2021-12-17 19:04
I can reproduce.

Source code:

<dt id="debug__">
<span id="__debug__"></span><code class="sig-name descname">__debug__</code><a class="headerlink" href="#debug__" title="Permalink to this definition">¶</a></dt>

HTML IDs should start with a letter, a rule which is generally ignored by browsers because of the amount of pages using numerical IDs for example.  I think the HTML5 spec does not require starting with a letter, but I haven’t found that stated clearly.
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90222
2021-12-17 19:04:51eric.araujosetnosy: + eric.araujo
messages: + msg408809
2021-12-13 13:19:00AlexWaygoodsetnosy: + AlexWaygood
messages: + msg408452
2021-12-13 13:14:42Fabian Dillcreate