Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Soft deprecate urllib.parse.urlparse() #144148

Open
Labels
3.15new features, bugs and security fixesdocsDocumentation in the Doc dir
@serhiy-storchaka

Description

@serhiy-storchaka

urlparse() is similar tourlsplit(), but additionally it splitspath onpath andparams using the ";" separator. This is wrong. First, the corresponding RFCs (RFC 3986,RFC 8820) do not list "params" as a separate URI component. Second, the ";" separator is used to specify parameters for a path segment, not the whole path. And this is scheme-specific, most schemes don't use it or use "," for similar purpose. It is mentioned in RFC 3986, but not in RFC 8820.

So, it is better to useurlsplit() and then parsepath if needed. I afraid that most users ofurlparse() are not aware of this, and only use it because it have more attractive name thanurlsplit().

We should clearly documenturlparse() as obsolete.

cc@orsenthil

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15new features, bugs and security fixesdocsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp