https://github.com/python/cpython/commit/7f2bc2502409086ffa3c9e0b28574da35a1d5ce5
commit: 7f2bc2502409086ffa3c9e0b28574da35a1d5ce5
branch: main
author: Sergey B Kirpichev <[email protected]>
committer: ambv <[email protected]>
date: 2026-10-23T11:21:57-07:00
summary:
gh-109218: announce removal of complex constructor deprecations in 3.19
(#158212)
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.
files:
M Doc/deprecations/pending-removal-in-3.19.rst
M Doc/deprecations/pending-removal-in-future.rst
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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]