From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 7 Jul 2026 00:24:44 +0000 (+0200) Subject: [3.15] gh-82151: Update and improve urlsplit docstring (GH-152985) (#153154) X-Git-Tag: v3.15.0b4~93 X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=017e4e9bb8152bf09acd31b5fcaafceac002d84f;p=thirdparty%2FPython%2Fcpython.git [3.15] gh-82151: Update and improve urlsplit docstring (GH-152985) (#153154) gh-82151: Update and improve urlsplit docstring (GH-152985) (cherry picked from commit ad54b91b9fa4c5d12f155bb09138dff21a2bdec3) Co-authored-by: Pranav Choudhary Co-authored-by: idomic Co-authored-by: Senthil Kumaran --- diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst index ef48addaba03..3ce20311c42c 100644 --- a/Doc/library/urllib.parse.rst +++ b/Doc/library/urllib.parse.rst @@ -60,11 +60,16 @@ or on combining URL components into a URL string. *missing_as_none* is true. Not defined component are represented an empty string (by default) or ``None`` if *missing_as_none* is true. - The components are not broken up - into smaller parts (for example, the network location is a single string), and % - escapes are not expanded. The delimiters as shown above are not part of the - result, except for a leading slash in the *path* component, which is retained if - present. For example: + The delimiters as shown above are not part of the result, except for a + leading slash in the *path* component, which is retained if present. + + Additionally, the netloc property is broken down into these additional + attributes added to the returned object: username, password, hostname, and + port. + + Percent-encoded sequences are not decoded. + + For example: .. doctest:: :options: +NORMALIZE_WHITESPACE