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 <>
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
>>> urllib.parse.urlparse('http://[[::1]').hostname
Date User Action Args
2018-08-08 16:02:35The Compilersetrecipients: + The Compiler, orsenthil, Howie Benefiel
2018-08-08 16:02:35The Compilersetmessageid: <>
2018-08-08 16:02:35The Compilerlinkissue34360 messages
2018-08-08 16:02:35The Compilercreate