]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-118767: remove bool(NotImplemented) from pending-removal document (GH-13952...
authorJost Migenda <jost.migenda@kcl.ac.uk>
Mon, 6 Oct 2025 21:28:57 +0000 (22:28 +0100)
committerGitHub <noreply@github.com>
Mon, 6 Oct 2025 21:28:57 +0000 (00:28 +0300)
Doc/deprecations/pending-removal-in-3.14.rst
Doc/deprecations/pending-removal-in-future.rst

index 0dc4233e926098ea70901794f69daa37f237672e..e8554a78c608f06a119f1d960c3495322ff396e6 100644 (file)
@@ -38,6 +38,10 @@ Pending Removal in Python 3.14
     is no current event loop set and it decides to create one.
     (Contributed by Serhiy Storchaka and Guido van Rossum in :gh:`100160`.)
 
+* :mod:`builtins`: ``bool(NotImplemented)`` now emits a :exc:`DeprecationWarning`
+  and will raise a :exc:`TypeError` in Python 3.14.
+  (Contributed by Jelle Zijlstra in :gh:`118767`.)
+
 * :mod:`email`: Deprecated the *isdst* parameter in :func:`email.utils.localtime`.
   (Contributed by Alan Williams in :gh:`72346`.)
 
index a865e6ce585df35d5a55dbcf3efa4b8b66e3b01c..20707c644e2ac1126051bdd808995810ea2d5e70 100644 (file)
@@ -9,7 +9,6 @@ although there is currently no date scheduled for their removal.
 
 * :mod:`builtins`:
 
-  * ``bool(NotImplemented)``.
   * Generators: ``throw(type, exc, tb)`` and ``athrow(type, exc, tb)``
     signature is deprecated: use ``throw(exc)`` and ``athrow(exc)`` instead,
     the single argument signature.