From: Victor Stinner Date: Tue, 18 Jul 2023 15:13:51 +0000 (+0200) Subject: gh-106535: Document soft deprecations in What's New In Python 3.13 (#106859) X-Git-Tag: v3.13.0a1~1348 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3535ef1eec2563bbd7bff7c830465441fbbf759e;p=thirdparty%2FPython%2Fcpython.git gh-106535: Document soft deprecations in What's New In Python 3.13 (#106859) --- diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 0181e16f7d9b..479d08b24b11 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -184,6 +184,13 @@ Deprecated Replace ``ctypes.ARRAY(item_type, size)`` with ``item_type * size``. (Contributed by Victor Stinner in :gh:`105733`.) +* The :mod:`getopt` and :mod:`optparse` modules are now + :term:`soft deprecated`: the :mod:`argparse` should be used for new projects. + Previously, the :mod:`optparse` module was already deprecated, its removal + was not scheduled, and no warnings was emitted: so there is no change in + practice. + (Contributed by Victor Stinner in :gh:`106535`.) + Pending Removal in Python 3.14 ------------------------------ @@ -946,6 +953,11 @@ Removed :c:func:`PyInterpreterState_Get()` on Python 3.8 and older. (Contributed by Victor Stinner in :gh:`106320`.) +* The :c:func:`PyModule_AddObject` function is now :term:`soft deprecated`: + :c:func:`PyModule_Add` or :c:func:`PyModule_AddObjectRef` functions should + be used instead. + (Contributed by Serhiy Storchaka in :gh:`86493`.) + Pending Removal in Python 3.14 ------------------------------