This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ndim
Recipients ndim
Date 2008-05-27.20:47:32
SpamBayes Score 0.01534292
Marked as misclassified No
Message-id <1211921254.45.0.541702925928.issue2987@psf.upfronthosting.co.za>
In-reply-to
Content
I have written this patch because urlparse could not retrieve the
hostname or port components of URIs such as
http://[::ffff:192.168.13.37]/ or http://[dead:beef::1]:8888/

This problem happens with Python 2.5.1 in Fedora 9, and I have also
found it in Python's SVN trunk/ and release25-maint/ source code.

It still needs some polishing and thinking: See the places marked
FIXME, but probably also others. One would not want an inconsistent
API feel with respect to IPv6 address handling.

Might require some more comprehensive thought about how Python wants
to handle networks other-than-IPv4, exceeding the scope of a simple
patch to urlparse.py.

On a not-totally-unrelated note, someone should examine whether IRIs[1]
can fit into urlparse.py, or whether they need e.g. a separate
iriparse.py with an adapted API.

[1] RFC 3987 - Internationalized Resource Identifiers (IRIs)
    M. Duerst, M. Suignard, January 2005
History
Date User Action Args
2008-05-27 20:47:34ndimsetspambayes_score: 0.0153429 -> 0.01534292
recipients: + ndim
2008-05-27 20:47:34ndimsetspambayes_score: 0.0153429 -> 0.0153429
messageid: <1211921254.45.0.541702925928.issue2987@psf.upfronthosting.co.za>
2008-05-27 20:47:33ndimlinkissue2987 messages
2008-05-27 20:47:32ndimcreate