summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorYurii Karabas <1998uriyyo@gmail.com>2022-04-28 15:24:19 (GMT)
committerGitHub <noreply@github.com>2022-04-28 15:24:19 (GMT)
commit0ef8d921f5c6945aa8f386e472c4110b81ac773d (patch)
tree4c06fd7aa389289ccf3404fec29402f891d3ab91 /Misc
parent4ed3900041c688a02dca1eb3323083d720dd0d93 (diff)
downloadcpython-0ef8d921f5c6945aa8f386e472c4110b81ac773d.zip
cpython-0ef8d921f5c6945aa8f386e472c4110b81ac773d.tar.gz
cpython-0ef8d921f5c6945aa8f386e472c4110b81ac773d.tar.bz2
gh-91603: Speed up isinstance/issubclass on union types (GH-91631)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2022-04-17-11-03-45.gh-issue-91603.hYw1Lv.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-04-17-11-03-45.gh-issue-91603.hYw1Lv.rst b/Misc/NEWS.d/next/Core and Builtins/2022-04-17-11-03-45.gh-issue-91603.hYw1Lv.rst
new file mode 100644
index 0000000..957bd5e
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2022-04-17-11-03-45.gh-issue-91603.hYw1Lv.rst
@@ -0,0 +1,2 @@
+Speed up :func:`isinstance` and :func:`issubclass` checks for :class:`types.UnionType`.
+Patch by Yurii Karabas.