-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Documentation
cpython has several references to "netloc" (primarily in the Lib and urllib libraries). This term describes the network location and login information in a URI (Uniform Resource Indicator) as seen in RFC 1808, but has been outdated since 1998 and 2005 with the publishing of RFC 2396 and RFC 3986 which is the Internet Standard. The correct term for this URI component is "authority."
This excerpt from RFC 3986 shows the components of the URI:
The following are two example URIs and their component parts:
foo://example.com:8042/over/there?name=ferret#nose
\_/ \______________/\_________/ \_________/ \__/
| | | | |
scheme authority path query fragment
| _____________________|__
/ \ / \
urn:example:animal:ferret:nose
This update would require renaming all references of "netloc" and "net_loc" to "authority" or some abbreviation (E.g. "auth"). Because this would be a breaking change, it perhaps is not a documentation update. However, the other issue types didn't seem to fit. Thanks.
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir