Skip to content

gh-151943: Fix Sphinx reference warnings in Doc/library/xmlrpc.client.rst - #158484

Open
jang-hs wants to merge 4 commits into
python:mainfrom
jang-hs:fix/issue-151943-xmlrpc-client-refs
Open

jang-hs wants to merge 4 commits into
python:mainfrom
jang-hs:fix/issue-151943-xmlrpc-client-refs

Conversation

@jang-hs

@jang-hs jang-hs commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Error, the base class of Fault and ProtocolError, and Server, the backwards-compatible alias of ServerProxy, both exist at runtime but had no entries on the page, so the references to them in the ServerProxy description did not resolve. This adds an exception entry for Error and a class entry for Server right after ServerProxy, and moves the existing alias note out of the ServerProxy description into the new Server entry rather than repeating it.

Transport and SafeTransport are different: the same sentence calls them internal, and the XXX note at the top of the file already lists Transport among the things that are not documented yet. Documenting them properly is a larger change than a reference fix, so those two links are suppressed with ! for now. The introspection paragraph linked :attr:`~ServerProxy.system` , which has no entry of its own; the methods under it are documented as ServerProxy.system.listMethods() and so on, so that link is suppressed too.

A clean nit-picky build shows no warnings left for the file, and Doc/tools/check-warnings.py --fail-if-regression --fail-if-improved --fail-if-new-news-nit passes with the entry removed from .nitignore.

I had help from an LLM to find the warnings and draft the change and this description. I reviewed the diff and the build results before opening.

….client.rst`

Error, the base class of Fault and ProtocolError, and the Server alias
of ServerProxy are public but had no entries, so references to them did
not resolve. Document them next to ServerProxy; the alias note moves out
of the ServerProxy description into the new Server entry. Transport and
SafeTransport are described as internal and are left undocumented, as
the note at the top of the file says, so those links are suppressed, as
is the link to the ServerProxy.system attribute, which has no entry of
its own; the methods under it are documented as
ServerProxy.system.listMethods() and so on.

Doc/library/xmlrpc.client.rst now builds clean in nit-picky mode and
comes out of Doc/tools/.nitignore.
@read-the-docs-community

read-the-docs-community Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34865785 | 📁 Comparing 8adc80c against main (b7b4f3e)

  🔍 Preview build  

6 files changed · ± 6 modified

± Modified

Comment thread Doc/library/xmlrpc.client.rst Outdated
Comment on lines +156 to +159
.. class:: Server

Retained as an alias for :class:`ServerProxy` for backwards compatibility.
New code should use :class:`ServerProxy`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just leave this as a sentence in the description of ServerProxy, as it's only an old alias.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done - moved it back into the ServerProxy description (with ! since there's no longer a target).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants