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 Ilya Konstantinov
Recipients Ilya Konstantinov, christian.heimes, martin.panter, nsonaniya2010, orsenthil, steven.daprano, xtreak
Date 2019-08-18.06:57:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
From RFC-1738:

hostname       = *[ domainlabel "." ] toplabel
domainlabel    = alphadigit | alphadigit *[ alphadigit | "-" ] alphadigit
toplabel       = alpha | alpha *[ alphadigit | "-" ] alphadigit
alphadigit     = alpha | digit


py> urlparse('https://foo\\bar/baz')
ParseResult(scheme='https', netloc='foo\\bar', path='/baz', params='', query='', fragment='')

The hostname's BNF doesn't allow for a backslash ('\\') character, so I'd expect urlparse to raise a ValueError for this "URL".
Date User Action Args
2019-08-18 06:57:48Ilya Konstantinovsetrecipients: + Ilya Konstantinov, orsenthil, christian.heimes, steven.daprano, martin.panter, xtreak, nsonaniya2010
2019-08-18 06:57:48Ilya Konstantinovsetmessageid: <>
2019-08-18 06:57:48Ilya Konstantinovlinkissue35748 messages
2019-08-18 06:57:48Ilya Konstantinovcreate