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 belopolsky
Recipients belopolsky, docs@python
Date 2010-10-29.05:26:02
SpamBayes Score 0.00015741009
Marked as misclassified No
Message-id <1288329966.05.0.0344146922962.issue10226@psf.upfronthosting.co.za>
In-reply-to
Content
The following example in Doc/library/urlparse.rst is wrong

>>> urlparse('www.cwi.nl:80/%7Eguido/Python.html')
ParseResult(scheme='', netloc='', path='www.cwi.nl:80/%7Eguido/Python.html',
           params='', query='', fragment='')

In the actual output, scheme='www.cwi.nl'.

In addition, the preceding text is confusing and probably not grammatical:

"""
Otherwise, it is not possible to distinguish between netloc and path components, and would the indistinguishable component would be classified as the path as in a relative URL.
"""

Discovered while working on issue 10225.
History
Date User Action Args
2010-10-29 05:26:06belopolskysetrecipients: + belopolsky, docs@python
2010-10-29 05:26:06belopolskysetmessageid: <1288329966.05.0.0344146922962.issue10226@psf.upfronthosting.co.za>
2010-10-29 05:26:04belopolskylinkissue10226 messages
2010-10-29 05:26:03belopolskycreate