diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-11-12 19:10:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-12 19:10:29 (GMT) |
commit | 7577307ebdaeef6702b639e22a896080e81aae4e (patch) | |
tree | 0fabee28382b27e06d4ef8658d58b447f07d421a /Doc/library | |
parent | 03924b5deeb766fabd53ced28ba707e4dd08fb60 (diff) | |
download | cpython-7577307ebdaeef6702b639e22a896080e81aae4e.zip cpython-7577307ebdaeef6702b639e22a896080e81aae4e.tar.gz cpython-7577307ebdaeef6702b639e22a896080e81aae4e.tar.bz2 |
gh-116897: Deprecate generic false values in urllib.parse.parse_qsl() (GH-116903)
Accepting objects with false values (like 0 and []) except empty strings
and byte-like objects and None in urllib.parse functions parse_qsl() and
parse_qs() is now deprecated.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/urllib.parse.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst index fb5353e..0501dc8 100644 --- a/Doc/library/urllib.parse.rst +++ b/Doc/library/urllib.parse.rst @@ -239,6 +239,10 @@ or on combining URL components into a URL string. query parameter separator. This has been changed to allow only a single separator key, with ``&`` as the default separator. + .. deprecated:: 3.14 + Accepting objects with false values (like ``0`` and ``[]``) except empty + strings and byte-like objects and ``None`` is now deprecated. + .. function:: parse_qsl(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&') @@ -745,6 +749,10 @@ task isn't already covered by the URL parsing functions above. .. versionchanged:: 3.5 Added the *quote_via* parameter. + .. deprecated:: 3.14 + Accepting objects with false values (like ``0`` and ``[]``) except empty + strings and byte-like objects and ``None`` is now deprecated. + .. seealso:: |