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 ztane
Recipients Feng A, xiang.zhang, ztane
Date 2016-05-23.09:20:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463995201.84.0.897157848441.issue27089@psf.upfronthosting.co.za>
In-reply-to
Content
This behaviour exists exactly because the return value also contains the `.hostname`, which for the IPv6 addresses is *without* brackets:

    >>> urlparse('http://[::1]:80/').hostname
    '::1'

There is no way to get a proper parsing result from such a broken URI.
History
Date User Action Args
2016-05-23 09:20:01ztanesetrecipients: + ztane, xiang.zhang, Feng A
2016-05-23 09:20:01ztanesetmessageid: <1463995201.84.0.897157848441.issue27089@psf.upfronthosting.co.za>
2016-05-23 09:20:01ztanelinkissue27089 messages
2016-05-23 09:20:01ztanecreate