From a6108c7dc46ae627ac3f5baf7ce8b342d4ac25ad Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:55:39 +0300 Subject: [PATCH 1/7] Docs: move deprecations into include files --- Doc/whatsnew/3.12.rst | 2 ++ Doc/whatsnew/3.14.rst | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index b4cd4aa6e83b91..fc2b6519fb1307 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -1336,6 +1336,8 @@ Deprecated .. include:: ../deprecations/pending-removal-in-3.15.rst +.. include:: ../deprecations/pending-removal-in-3.16.rst + .. include:: ../deprecations/pending-removal-in-future.rst Removed diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index bd8bdcb6732fde..868690e6918cce 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -198,6 +198,13 @@ Deprecated * Deprecate :meth:`symtable.Class.get_methods` due to the lack of interest. (Contributed by Bénédikt Tran in :gh:`119698`.) +.. Add deprecations above alphabetically, not here at the end. + +.. include:: ../deprecations/pending-removal-in-3.15.rst + +.. include:: ../deprecations/pending-removal-in-3.16.rst + +.. include:: ../deprecations/pending-removal-in-future.rst Removed ======= From 2f78f36d444421901921149c038b89291d64729d Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:59:29 +0300 Subject: [PATCH 2/7] Re-order improved modules --- Doc/whatsnew/3.14.rst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index 868690e6918cce..b53260dd66ffd6 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -141,6 +141,12 @@ pathlib (Contributed by Barney Gale in :gh:`73991`.) +pickle +------ + +* Set the default protocol version on the :mod:`pickle` module to 5. + For more details, please see :ref:`pickle protocols `. + pdb --- @@ -162,12 +168,7 @@ symtable (Contributed by Bénédikt Tran in :gh:`120029`.) -pickle ------- - -* Set the default protocol version on the :mod:`pickle` module to 5. - For more details, please see :ref:`pickle protocols `. - +.. Add improved modules above alphabetically, not here at the end. Optimizations ============= From 79d883473adef8068178da9d0330ff43c26358fb Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Wed, 24 Jul 2024 22:08:19 +0300 Subject: [PATCH 3/7] Prefix deprecations with module name --- Doc/whatsnew/3.14.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index b53260dd66ffd6..665343c8c9eae3 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -181,22 +181,23 @@ asyncio reduces memory usage. (Contributed by Kumar Aditya in :gh:`107803`.) - - Deprecated ========== -* Passing a complex number as the *real* or *imag* argument in the +* :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`.) -* :term:`Soft deprecate ` :func:`os.popen` and +* :mod:`os`: + :term:`Soft deprecate ` :func:`os.popen` and :func:`os.spawn* ` functions. They should no longer be used to write new code. The :mod:`subprocess` module is recommended instead. (Contributed by Victor Stinner in :gh:`120743`.) -* Deprecate :meth:`symtable.Class.get_methods` due to the lack of interest. +* :mod:`symtable`: + Deprecate :meth:`symtable.Class.get_methods` due to the lack of interest. (Contributed by Bénédikt Tran in :gh:`119698`.) .. Add deprecations above alphabetically, not here at the end. @@ -265,7 +266,6 @@ asyncio (Contributed by Kumar Aditya in :gh:`120804`.) - collections.abc --------------- From 147fa39de5fa805f9526cae35270fae06a411cb8 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 25 Jul 2024 00:33:13 +0300 Subject: [PATCH 4/7] Re-order improved modules propery this time --- Doc/whatsnew/3.14.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index 665343c8c9eae3..91cab5fab2562a 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -141,12 +141,6 @@ pathlib (Contributed by Barney Gale in :gh:`73991`.) -pickle ------- - -* Set the default protocol version on the :mod:`pickle` module to 5. - For more details, please see :ref:`pickle protocols `. - pdb --- @@ -157,6 +151,12 @@ pdb :pdbcmd:`commands` are preserved across hard-coded breakpoints. (Contributed by Tian Gao in :gh:`121450`.) +pickle +------ + +* Set the default protocol version on the :mod:`pickle` module to 5. + For more details, please see :ref:`pickle protocols `. + symtable -------- From 14547bd27191e8b74b48deebef7c6723301d71c4 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 25 Jul 2024 11:38:26 +0300 Subject: [PATCH 5/7] Add new deprecations in 3.14 to include files --- Doc/deprecations/pending-removal-in-3.16.rst | 7 ++++++- Doc/deprecations/pending-removal-in-future.rst | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Doc/deprecations/pending-removal-in-3.16.rst b/Doc/deprecations/pending-removal-in-3.16.rst index 97e6bf28efddf2..10cb5e424a623b 100644 --- a/Doc/deprecations/pending-removal-in-3.16.rst +++ b/Doc/deprecations/pending-removal-in-3.16.rst @@ -1,5 +1,10 @@ Pending Removal in Python 3.16 ------------------------------ -* :class:`array.array` ``'u'`` type (:c:type:`wchar_t`): +* :mod:`array`: + :class:`array.array` ``'u'`` type (:c:type:`wchar_t`): use the ``'w'`` type instead (``Py_UCS4``). + +* :mod:`symtable`: + Deprecate :meth:`symtable.Class.get_methods` due to the lack of interest. + (Contributed by Bénédikt Tran in :gh:`119698`.) diff --git a/Doc/deprecations/pending-removal-in-future.rst b/Doc/deprecations/pending-removal-in-future.rst index db6a41fe8880f6..7f10d9a98257f9 100644 --- a/Doc/deprecations/pending-removal-in-future.rst +++ b/Doc/deprecations/pending-removal-in-future.rst @@ -34,6 +34,10 @@ although there is currently no date scheduled for their removal. :class:`complex`: these methods will be required to return an instance of :class:`complex`. * Delegation of ``int()`` to ``__trunc__()`` method. + * 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 From 4ea1895ee913d92c0272b6e28372e2d83b91466e Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 16:04:10 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2024-07-25-16-04-03.gh-issue-122085.2Oj8ot.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2024-07-25-16-04-03.gh-issue-122085.2Oj8ot.rst diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2024-07-25-16-04-03.gh-issue-122085.2Oj8ot.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-07-25-16-04-03.gh-issue-122085.2Oj8ot.rst new file mode 100644 index 00000000000000..9daeafb9864cf4 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2024-07-25-16-04-03.gh-issue-122085.2Oj8ot.rst @@ -0,0 +1 @@ +test From dd6392a478f0c904c77284e430b6fe2177b54d8b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 25 Jul 2024 19:05:10 +0300 Subject: [PATCH 7/7] =?UTF-8?q?Revert=20"=F0=9F=93=9C=F0=9F=A4=96=20Added?= =?UTF-8?q?=20by=20blurb=5Fit."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4ea1895ee913d92c0272b6e28372e2d83b91466e. --- .../2024-07-25-16-04-03.gh-issue-122085.2Oj8ot.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2024-07-25-16-04-03.gh-issue-122085.2Oj8ot.rst diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2024-07-25-16-04-03.gh-issue-122085.2Oj8ot.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-07-25-16-04-03.gh-issue-122085.2Oj8ot.rst deleted file mode 100644 index 9daeafb9864cf4..00000000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2024-07-25-16-04-03.gh-issue-122085.2Oj8ot.rst +++ /dev/null @@ -1 +0,0 @@ -test