Skip to content

Commit c4d7eba

Browse files
Bump notes to 3.13
1 parent fcc260b commit c4d7eba

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Doc/library/urllib.parse.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ or on combining URL components into a URL string.
180180
Characters that affect netloc parsing under NFKC normalization will
181181
now raise :exc:`ValueError`.
182182

183-
.. versionchanged:: 3.12
183+
.. versionchanged:: 3.13
184184
Values for ``url`` and ``scheme`` other than strings or bytes raise
185185
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
186186
changed to :exc:`TypeError` in future versions of Python).
@@ -274,7 +274,7 @@ or on combining URL components into a URL string.
274274
query parameter separator. This has been changed to allow only a single
275275
separator key, with ``&`` as the default separator.
276276

277-
.. versionchanged:: 3.12
277+
.. versionchanged:: 3.13
278278
Values for ``qs`` and ``separator`` other than strings or bytes raise
279279
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
280280
changed to :exc:`TypeError` in future versions of Python).
@@ -288,7 +288,7 @@ or on combining URL components into a URL string.
288288
unnecessary delimiters (for example, a ``?`` with an empty query; the RFC
289289
states that these are equivalent).
290290

291-
.. versionchanged:: 3.12
291+
.. versionchanged:: 3.13
292292
Items in ``parts`` other than strings or bytes raise
293293
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
294294
changed to :exc:`TypeError` in future versions of Python).
@@ -381,7 +381,7 @@ or on combining URL components into a URL string.
381381
URL that was parsed originally had unnecessary delimiters (for example, a ?
382382
with an empty query; the RFC states that these are equivalent).
383383

384-
.. versionchanged:: 3.12
384+
.. versionchanged:: 3.13
385385
Items in ``parts`` other than strings or bytes raise
386386
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
387387
changed to :exc:`TypeError` in future versions of Python).
@@ -420,7 +420,7 @@ or on combining URL components into a URL string.
420420

421421
Behavior updated to match the semantics defined in :rfc:`3986`.
422422

423-
.. versionchanged:: 3.12
423+
.. versionchanged:: 3.13
424424
Values for ``base`` and ``url`` other than strings or bytes raise
425425
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
426426
changed to :exc:`TypeError` in future versions of Python).
@@ -450,7 +450,7 @@ or on combining URL components into a URL string.
450450
.. versionchanged:: 3.2
451451
Result is a structured object rather than a simple 2-tuple.
452452

453-
.. versionchanged:: 3.12
453+
.. versionchanged:: 3.13
454454
Values other than strings or bytes raise
455455
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
456456
changed to :exc:`TypeError` in future versions of Python).

Doc/whatsnew/3.13.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,11 @@ Deprecated
423423
(as has always been the case for an executing frame).
424424
(Contributed by Irit Katriel in :gh:`79932`.)
425425

426+
* Providing anything but a string or bytes object to :mod:`urllib.parse`
427+
functions expecting strings or bytes now raises :exc:`DeprecationWarning`
428+
if the value tests false, or :exc:`TypeError` if it tests true.
429+
(Contributed by Jacob Walls in :issue:`19094`.)
430+
426431
* Assignment to a function's ``__code__`` attribute where the new code
427432
object's type does not match the function's type, is deprecated. The
428433
different types are: plain function, generator, async generator and

0 commit comments

Comments
 (0)