[issue2987] RFC2732 support for urlparse (e.g. http://[::1]:80/)

Tony Locke report at bugs.python.org
Sun Apr 11 21:32:50 CEST 2010

Tony Locke <tlocke at tlocke.org.uk> added the comment:

I've created a patch for parse.py against the py3k branch, and I've also included ndim's test cases in that patch file.

When returning the host name of an IPv6 literal, I don't include the surrounding '[' and ']'. For example, parsing http://[::1]:5432/foo/ gives the host name '::1'.

nosy: +tlocke
versions: +Python 3.2
Added file: http://bugs.python.org/file16886/parse.py.patch

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list