From 29eb99d432b4e996d923a00b514504849e0e4484 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sat, 26 Sep 2026 06:53:46 +0300 Subject: [PATCH] gh-109218: announce removal of complex constructor deprecations in 3.19 Accepting complex numbers as "real" and "image" arguments was deprecated in the 3.14 (see ef01e95). Removal will simplify constructor a lot, lets do this. --- Doc/deprecations/pending-removal-in-3.19.rst | 7 +++++++ Doc/deprecations/pending-removal-in-future.rst | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Doc/deprecations/pending-removal-in-3.19.rst b/Doc/deprecations/pending-removal-in-3.19.rst index d7e0cd2d33ddb8..7b3389c4d617e7 100644 --- a/Doc/deprecations/pending-removal-in-3.19.rst +++ b/Doc/deprecations/pending-removal-in-3.19.rst @@ -1,6 +1,13 @@ Pending removal in Python 3.19 ------------------------------ +* :mod:`builtins`: + + * Passing a complex number as the *real* or *imag* argument in the + :func:`complex` constructor is now deprecated; it should only be passed + as a single positional argument. + (Contributed by Serhiy Storchaka in :gh:`109218`.) + * :mod:`ctypes`: * Implicitly switching to the MSVC-compatible struct layout by setting diff --git a/Doc/deprecations/pending-removal-in-future.rst b/Doc/deprecations/pending-removal-in-future.rst index 74f98d33a4b61f..6f372275225669 100644 --- a/Doc/deprecations/pending-removal-in-future.rst +++ b/Doc/deprecations/pending-removal-in-future.rst @@ -35,10 +35,6 @@ although there is currently no date scheduled for their removal. * Support for ``__complex__()`` method returning a strict subclass of :class:`complex`: these methods will be required to return an instance of :class:`complex`. - * Passing a complex number as the *real* or *imag* argument in the - :func:`complex` constructor is now deprecated; it should only be passed - as a single positional argument. - (Contributed by Serhiy Storchaka in :gh:`109218`.) * :mod:`calendar`: ``calendar.January`` and ``calendar.February`` constants are deprecated and replaced by :data:`calendar.JANUARY` and