Skip to content

Commit 3535ef1

Browse files
authored
gh-106535: Document soft deprecations in What's New In Python 3.13 (#106859)
1 parent aecf6ac commit 3535ef1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Doc/whatsnew/3.13.rst

+12
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,13 @@ Deprecated
184184
Replace ``ctypes.ARRAY(item_type, size)`` with ``item_type * size``.
185185
(Contributed by Victor Stinner in :gh:`105733`.)
186186

187+
* The :mod:`getopt` and :mod:`optparse` modules are now
188+
:term:`soft deprecated`: the :mod:`argparse` should be used for new projects.
189+
Previously, the :mod:`optparse` module was already deprecated, its removal
190+
was not scheduled, and no warnings was emitted: so there is no change in
191+
practice.
192+
(Contributed by Victor Stinner in :gh:`106535`.)
193+
187194
Pending Removal in Python 3.14
188195
------------------------------
189196

@@ -946,6 +953,11 @@ Removed
946953
:c:func:`PyInterpreterState_Get()` on Python 3.8 and older.
947954
(Contributed by Victor Stinner in :gh:`106320`.)
948955

956+
* The :c:func:`PyModule_AddObject` function is now :term:`soft deprecated`:
957+
:c:func:`PyModule_Add` or :c:func:`PyModule_AddObjectRef` functions should
958+
be used instead.
959+
(Contributed by Serhiy Storchaka in :gh:`86493`.)
960+
949961
Pending Removal in Python 3.14
950962
------------------------------
951963

0 commit comments

Comments
 (0)