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
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 validurlparse('http://[V1fe.d:9]/')throwsValueErrorwhile
http://[V1fe.d:9]/is also a valid IPvFuture hostname.Checked in python version 3.11.4
Linked PRs