-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
METH_* and Py_TPFLAGS* constants are documented as Python data #96996
Comments
@AA-Turner is one of the most knowledgeable people on these changes, since he was the one to propose a related set of them in #93738 that have similar effects. This ultimately seems to be more of a strict defect in the CPython docs source than that, though, as the objects are currently not categorized correctly. As mentioned during the meeting, external links should still work, as the anchors should still be the same. Internal references will need to be updated, and unfortunately I'm not aware of any obvious mechanism to redirect old references (particularly for Intersphinx users, since internal uses can fairly easily update)— @AA-Turner , is there any chance of something like that? However, as long as they are using Regarding backporting, not doing so would lead to more conflicts over time and would mean existing docs would not benefit from this defect fix, but on the other hand, not backporting to at least 3.10 would minimize any backward compat concerns (since there are many other changes users expect and need to adapt to between Python docs versions anyway). |
There's no way I'm aware of to mitigate this within Sphinx, I think we may just have to bite the bullet and make the changes--best time to plant a tree and all that. We should though socialise that we are making these changes -- discussion in various documentation fora at the very least. A |
FWIW, a similar issue is: #97908 (Docs for some C struct members repeat the struct name) |
FWIW, since this appears it will only break Intersphinx references, it produces a warning (with |
To note, in that issue the fragments visible to external links will change, unless we add ref target labels with the old name. |
#106919 fixed this, without preserving the URL fragments and external intersphinx references or advertising the changes. |
Both 3.11.0 and 3.12.0 have been released; seems we had to live without those advertisements. AFAIK, we did not advertise other similar Sphinx markup corrections. Suggesting to close this. |
For example, a search for Py_TPFLAGS says it's all “Python data”:
Same with METH_.
I guess this should be changed to
c:macro:
. It doesn't change URLs, but it would break references and Intersphinx links in third-party docs.And there's a lot of references to these items that use
:const:
rather than:c:macro:
. All of them would need to change, possibly causing conflicts in backports.An additional issue is flag combinations in structures.rst:
These should look like items of the same category to the reader, but one is a valid
c:macro
and the other isn't.Sphinx experts, any tips on how (and whether) to best fix this?
The text was updated successfully, but these errors were encountered: