summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2021-08-23 08:15:49 (GMT)
committerGitHub <noreply@github.com>2021-08-23 08:15:49 (GMT)
commit6082bb5addab93755ab6e2bd2ed6021b391e10d1 (patch)
treeef109d492632072d919a7ebeb2ce89342a2babdb /Misc
parenteec340ea3af27887fcaac4029ebdee99f3713bff (diff)
downloadcpython-6082bb5addab93755ab6e2bd2ed6021b391e10d1.zip
cpython-6082bb5addab93755ab6e2bd2ed6021b391e10d1.tar.gz
cpython-6082bb5addab93755ab6e2bd2ed6021b391e10d1.tar.bz2
bpo-24234: implement complex.__complex__ (GH-27887)
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2021-08-22-12-28-50.bpo-24234.n3oTdx.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-08-22-12-28-50.bpo-24234.n3oTdx.rst b/Misc/NEWS.d/next/Core and Builtins/2021-08-22-12-28-50.bpo-24234.n3oTdx.rst
new file mode 100644
index 0000000..52397e9
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2021-08-22-12-28-50.bpo-24234.n3oTdx.rst
@@ -0,0 +1,3 @@
+Implement the :meth:`__complex__` special method on the :class:`complex` type,
+so a complex number ``z`` passes an ``isinstance(z, typing.SupportsComplex)``
+check.