]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-67041: Allow to distinguish between empty and not defined URI components (GH-123305)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 22 Jan 2026 12:29:13 +0000 (14:29 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Jan 2026 12:29:13 +0000 (14:29 +0200)
commitc5cfcdf16a98063530bdfe11a8894ab57aea3d92
tree5a5d71a0b674f8a780c4ab1be89925d30570ed1a
parent67535ab2d26c83dd4658f67d35f072fc563c618f
gh-67041: Allow to distinguish between empty and not defined URI components (GH-123305)

Changes in the urllib.parse module:

* Add option missing_as_none in urlparse(), urlsplit() and urldefrag(). If
  it is true, represent not defined components as None instead of an
  empty string.
* Add option keep_empty in urlunparse() and urlunsplit(). If it is
  true, keep empty non-None components in the resulting string.
Doc/library/urllib.parse.rst
Doc/whatsnew/3.15.rst
Lib/test/test_urlparse.py
Lib/urllib/parse.py
Mac/Resources/app-store-compliance.patch
Misc/NEWS.d/next/Library/2024-11-27-13-11-16.gh-issue-67041.ym2WKK.rst [new file with mode: 0644]