[issue47255] Many broken :meth: roles in the docs

2022-04-08 Thread Ken Jin
Ken Jin added the comment: It's 3.10 only. Presumably our sphinx version changed then and something broke. In 3.9 and earlier the links are all fine. See https://bugs.python.org/issue42182 for a similar issue I raised ages ago. -- nosy: +kj ___ Py

[issue47255] Many broken :meth: roles in the docs

2022-04-07 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: There are a lot of places in the rest of the docs that have the same problem: Doc % git grep ':meth:`__' | grep -v whatsnew | wc -l 610 I wonder if we can make the :meth: role globally default to linking to object.__dunder__. Would that require a change

[issue47255] Many broken :meth: roles in the docs

2022-04-07 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +30435 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32409 ___ Python tracker ___ _

[issue47255] Many broken :meth: roles in the docs

2022-04-07 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : The docs for the hash() builtin use :meth:`__hash__`, but this doesn't actually link to the datamodel documentation for __hash__: it needs :meth:`~object.__hash__` instead. I'm fixing this in the builtin functions docs, but there are probably more places.