[issue2987] RFC2732 support for urlparse (IPv6 addresses)

Tony Locke report at bugs.python.org
Mon Apr 12 01:09:11 CEST 2010


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

Regarding the RFC list issue, I've posted a new patch with a new RFC list that combines ndim's list and the comments from #5650.

Pitrou argues that http://dead:beef::]/foo/ should fail because it's a malformed URL. My response would be that the parse() function has historically assumed that a URL is well formed, and so this change to accommodate IPv6 should continue to assume the URL is well formed.

I'd say that a separate bug should be raised if it's thought that parse() should be changed to check that any URL is well-formed.

----------
Added file: http://bugs.python.org/file16888/parse.py.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2987>
_______________________________________


More information about the Python-bugs-list mailing list