summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2024-05-08 18:12:00 (GMT)
committerGitHub <noreply@github.com>2024-05-08 18:12:00 (GMT)
commit3c079a020369173745a16ed4ef19a64f69e8592b (patch)
treed0dfe5f1370b93a5326b55e823738c87f44ba603 /Misc
parentaac6b019fe91e2f9f7a955d4fc4db5d5efd968c9 (diff)
downloadcpython-3c079a020369173745a16ed4ef19a64f69e8592b.zip
cpython-3c079a020369173745a16ed4ef19a64f69e8592b.tar.gz
cpython-3c079a020369173745a16ed4ef19a64f69e8592b.tar.bz2
gh-118767: Make bool(NotImplemented) raise TypeError (#118775)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2024-05-08-09-44-15.gh-issue-118767.iFF5F5.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-05-08-09-44-15.gh-issue-118767.iFF5F5.rst b/Misc/NEWS.d/next/Core and Builtins/2024-05-08-09-44-15.gh-issue-118767.iFF5F5.rst
new file mode 100644
index 0000000..76548ef
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2024-05-08-09-44-15.gh-issue-118767.iFF5F5.rst
@@ -0,0 +1,2 @@
+Using :data:`NotImplemented` in a boolean context now raises
+:exc:`TypeError`. Contributed by Jelle Zijlstra in :gh:`118767`.