FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-82151: Update and improve urlsplit docstring by pranavchoudhary-tech · Pull Request #152985 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
15 changes: 10 additions & 5 deletions Doc/library/urllib.parse.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

Back | FazBrowse Home | New Git URL