[Python-checkins] r86296 - python/branches/py3k/Doc/library/urllib.parse.rst

senthil.kumaran python-checkins at python.org
Sun Nov 7 13:57:04 CET 2010

Author: senthil.kumaran
Date: Sun Nov  7 13:57:04 2010
New Revision: 86296

Fix Issue10226 - Clarifying the role of the netloc separator.


Modified: python/branches/py3k/Doc/library/urllib.parse.rst
--- python/branches/py3k/Doc/library/urllib.parse.rst	(original)
+++ python/branches/py3k/Doc/library/urllib.parse.rst	Sun Nov  7 13:57:04 2010
@@ -48,11 +48,10 @@
       >>> o.geturl()
-   If the scheme value is not specified, urlparse expects the netloc value to
-   start with '//', following the syntax specifications from :rfc:`1808`.
-   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.
+   Following the syntax specifications in :rfc:`1808`, urlparse recognizes
+   a netloc only if it is properly introduced by '//'.  Otherwise the
+   input is presumed to be a relative URL and thus to start with
+   a path component.
        >>> from urlparse import urlparse
        >>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html')

More information about the Python-checkins mailing list