Skip to content

Commit 7f2bc25

Browse files
authored
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.
1 parent 8d11920 commit 7f2bc25

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎Doc/deprecations/pending-removal-in-3.19.rst‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Pending removal in Python 3.19
22
------------------------------
33

4+
* :mod:`builtins`:
5+
6+
* Passing a complex number as the *real* or *imag* argument in the
7+
:func:`complex` constructor is now deprecated; it should only be passed
8+
as a single positional argument.
9+
(Contributed by Serhiy Storchaka in :gh:`109218`.)
10+
411
* :mod:`ctypes`:
512

613
* Implicitly switching to the MSVC-compatible struct layout by setting

‎Doc/deprecations/pending-removal-in-future.rst‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ although there is currently no date scheduled for their removal.
3535
* Support for ``__complex__()`` method returning a strict subclass of
3636
:class:`complex`: these methods will be required to return an instance of
3737
:class:`complex`.
38-
* Passing a complex number as the *real* or *imag* argument in the
39-
:func:`complex` constructor is now deprecated; it should only be passed
40-
as a single positional argument.
41-
(Contributed by Serhiy Storchaka in :gh:`109218`.)
4238

4339
* :mod:`calendar`: ``calendar.January`` and ``calendar.February`` constants are
4440
deprecated and replaced by :data:`calendar.JANUARY` and

0 commit comments

Comments
 (0)