Skip to content

Show fully qualified namespace plugin keys in code example - #2203

Merged
rgommers merged 2 commits into
python:mainfrom
akzarma:docs/pypug-namespace-plugin-keys
Nov 26, 2026
Merged

rgommers merged 2 commits into
python:mainfrom
akzarma:docs/pypug-namespace-plugin-keys

Conversation

@akzarma

@akzarma akzarma commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

The namespace plugin discovery example gives pkgutil.iter_modules the full namespace prefix, so the resulting dictionary uses myapp.plugins.a and myapp.plugins.b as keys. Update the displayed result to match the unchanged executable example.

Verification: executed the guide's example with two temporary local namespace plugins and compared the documented keys and values with the actual dictionary. The original keys failed the comparison; the corrected keys matched. The changed reST excerpt parsed without warnings with Docutils, and patch replay and git diff --check passed. The full Nox/Sphinx site build was not run.

AI assistance was used to prepare and verify this documentation change.


📚 Documentation preview 📚: https://python-packaging-user-guide--2203.org.readthedocs.build/en/2203/

@rgommers rgommers changed the title docs: show fully qualified namespace plugin keys Show fully qualified namespace plugin keys in code example Nov 26, 2026

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks @akzarma

@rgommers rgommers added component: guides type: maintenance Regular maintenance of the guide, CI and repo labels Nov 26, 2026
@rgommers
rgommers enabled auto-merge November 26, 2026 10:21
@rgommers
rgommers added this pull request to the merge queue Nov 26, 2026
Merged via the queue into python:main with commit d380ef6 Nov 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: guides type: maintenance Regular maintenance of the guide, CI and repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants