Skip to content

URI Netloc deprecated; replaced by Authority #115577

@codingpathfinder

Description

@codingpathfinder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions