X Tutup
The Wayback Machine - https://web.archive.org/web/20250529070544/https://github.com/python/cpython/issues/102504
Skip to content

Possible incorrect detail in output of urlparse #102504

Closed as not planned
Closed as not planned
@jaypittman

Description

@jaypittman

In this page: https://docs.python.org/3/library/urllib.parse.html#module-urllib.parse

In the code snippet under urllib.parse.urlparse:
urlparse("scheme://netloc/path;parameters?query#fragment")
ParseResult(scheme='scheme', netloc='netloc', path='/path;parameters', params='',
query='query', fragment='fragment')

This shows the parameters component of the URL being placed (in the output named tuple) onto the end of .path, not into .params. Seems likely that this is an oversight. But I don't have enough experience with the code to know for sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirpendingThe issue will be closed if no feedback is providedtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup