Skip to content

urlparser does not allow 'V' in the IPvFuture.  #105708

Description

@csreddy98

Url parser is allowing only 'v' in the IPvFuture. As per the standards the 'v' could be case-insensitive as mentioned here

  • urlparse('http://[v1fe.d:9]/') is valid
  • urlparse('http://[V1fe.d:9]/') throws ValueError

while http://[V1fe.d:9]/ is also a valid IPvFuture hostname.

Checked in python version 3.11.4

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions