Skip to content

gh-129745: Fix urlparse example to properly parse params#144461

Open
kovan wants to merge 1 commit intopython:mainfrom
kovan:gh-129745-urlparse-params-example
Open

gh-129745: Fix urlparse example to properly parse params#144461
kovan wants to merge 1 commit intopython:mainfrom
kovan:gh-129745-urlparse-params-example

Conversation

@kovan
Copy link
Contributor

@kovan kovan commented Feb 3, 2026

Summary

Changed the urlparse() example from using scheme:// to http:// so that the params component is correctly parsed.

The generic scheme isn't in the list of schemes that support parameter parsing (uses_params), so the previous example was showing params remaining in the path (path='/path;parameters') rather than being extracted (path='/path', params='parameters').

Test plan

  • Verified http is in uses_params and correctly parses params
  • make check passes
  • make html builds successfully

🤖 Generated with Claude Code


📚 Documentation preview 📚: https://cpython-previews--144461.org.readthedocs.build/

Changed the example from using 'scheme://' to 'http://' so that the
params component is correctly parsed. The generic 'scheme' isn't in
the list of schemes that support params, so the example was showing
params remaining in the path rather than being extracted.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

1 participant