https://github.com/python/cpython/commit/ef862d613a609ea1b1acd452583dd27a68e5afaa
commit: ef862d613a609ea1b1acd452583dd27a68e5afaa
branch: 3.14
author: Senthil Kumaran <[email protected]>
committer: orsenthil <[email protected]>
date: 2026-07-06T17:24:20-07:00
summary:

[3.14] gh-82151: Update and improve urlsplit docstring (#152985) (#153155)

gh-82151: Update and improve urlsplit docstring (#152985)



Slightly improved wording for % escapes. Consistent with rest of the doc.

---------



(cherry picked from commit ad54b91b9fa4c5d12f155bb09138dff21a2bdec3)

Co-authored-by: Pranav Choudhary <[email protected]>
Co-authored-by: idomic <[email protected]>

files:
M Doc/library/urllib.parse.rst

diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
index f893039c9ac83a..82f31c6bcf532f 100644
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -56,11 +56,18 @@ or on combining URL components into a URL string.
    :class:`SplitResult` or :class:`SplitResultBytes`.
    This corresponds to the general structure of a URL:
    ``scheme://netloc/path?query#fragment``.
-   Each tuple item is a string, possibly empty. 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:
+   Each tuple item is a string, possibly empty.
+
+   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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to