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 martin.panter
Recipients docs@python, martin.panter
Date 2015-03-17.01:39:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The documentation for urlsplit() says:

urlparse(urlstring, scheme='', allow_fragments=True)

. . .

If the scheme argument is specified, it gives the default addressing scheme, to be used only if the URL does not specify one. The default value for this argument is the empty string.

However this contradicts the table of attributes, which gives:

Attribute: scheme, . . . Value if not present: empty string

Similarly for urlsplit(). Of course, the description of the “scheme” parameter is correct, and the table is only correct when no “scheme” parameter is given:

>>> urlparse("//").scheme
>>> urlparse(b"//").scheme
>>> urlparse("//", "http").scheme

This issue is split off another where I tried to sneak in a quick fix, but the wording probably needs more thought. Original change: <>.

Maybe change it to this?

Value if not present: empty string or default scheme
Date User Action Args
2015-03-17 01:39:42martin.pantersetrecipients: + martin.panter, docs@python
2015-03-17 01:39:42martin.pantersetmessageid: <>
2015-03-17 01:39:41martin.panterlinkissue23684 messages
2015-03-17 01:39:40martin.pantercreate