Message350668
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. |
|
Date |
User |
Action |
Args |
2019-08-28 16:26:39 | zach.ware | set | recipients:
+ zach.ware, docs@python |
2019-08-28 16:26:39 | zach.ware | set | messageid: <1567009599.74.0.471882594509.issue37970@roundup.psfhosted.org> |
2019-08-28 16:26:39 | zach.ware | link | issue37970 messages |
2019-08-28 16:26:39 | zach.ware | create | |
|