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 The Compiler
Recipients Howie Benefiel, The Compiler, orsenthil
Date 2018-08-08.16:02:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533744155.42.0.56676864532.issue34360@psf.upfronthosting.co.za>
In-reply-to
Content
Since bpo-29651, the urllib.parse docs say:

> Unmatched square brackets in the netloc attribute will raise a ValueError.

However, when there are at least one [ and ], but they don't match, there's somewhat inconsistent behavior:

>>> urllib.parse.urlparse('http://[::1]]').hostname
'::1'
>>> urllib.parse.urlparse('http://[[::1]').hostname
'[::1'
History
Date User Action Args
2018-08-08 16:02:35The Compilersetrecipients: + The Compiler, orsenthil, Howie Benefiel
2018-08-08 16:02:35The Compilersetmessageid: <1533744155.42.0.56676864532.issue34360@psf.upfronthosting.co.za>
2018-08-08 16:02:35The Compilerlinkissue34360 messages
2018-08-08 16:02:35The Compilercreate