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 zach.ware
Recipients docs@python, zach.ware
Date 2019-08-28.16:26:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567009599.74.0.471882594509.issue37970@roundup.psfhosted.org>
In-reply-to
Content
For example, urlsplit:

>>> from urllib.parse import urlsplit
>>> help(urlsplit)
Help on function urlsplit in module urllib.parse:

urlsplit(url, scheme='', allow_fragments=True)
    Parse a URL into 5 components:
    <scheme>://<netloc>/<path>?<query>#<fragment>
    Return a 5-tuple: (scheme, netloc, path, query, fragment).
    Note that we don't break the components up in smaller bits
    (e.g. netloc is a single string) and we don't expand % escapes.


The current docstring does not describe the `scheme` or `allow_fragments` arguments.  Also, the note about not splitting netloc is misleading; the components of netloc (username, password, hostname, and port) are available as extra attributes of the returned SplitResult.

urlparse has similar issues; other functions could stand to be checked.
History
Date User Action Args
2019-08-28 16:26:39zach.waresetrecipients: + zach.ware, docs@python
2019-08-28 16:26:39zach.waresetmessageid: <1567009599.74.0.471882594509.issue37970@roundup.psfhosted.org>
2019-08-28 16:26:39zach.warelinkissue37970 messages
2019-08-28 16:26:39zach.warecreate