summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.11.rst
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2021-10-20 18:48:55 (GMT)
committerGitHub <noreply@github.com>2021-10-20 18:48:55 (GMT)
commitd89fb9a5a610a257014d112bdceef73d7df14082 (patch)
treedb1ee6f5da4202ac284db3af355fb1eaf79acdb3 /Doc/whatsnew/3.11.rst
parentd8e181925123ab1fd3dfcad3b29325b2b0ff704b (diff)
downloadcpython-d89fb9a5a610a257014d112bdceef73d7df14082.zip
cpython-d89fb9a5a610a257014d112bdceef73d7df14082.tar.gz
cpython-d89fb9a5a610a257014d112bdceef73d7df14082.tar.bz2
bpo-45320: Remove long-deprecated inspect methods (GH-28618)
Diffstat (limited to 'Doc/whatsnew/3.11.rst')
-rw-r--r--Doc/whatsnew/3.11.rst22
1 files changed, 19 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 13c1e72..d5e8bc9 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -363,7 +363,7 @@ Removed
``SO_REUSEADDR`` in UDP.
(Contributed by Hugo van Kemenade in :issue:`45129`.)
-* Remove :meth:`__getitem__` methods of
+* Removed :meth:`__getitem__` methods of
:class:`xml.dom.pulldom.DOMEventStream`, :class:`wsgiref.util.FileWrapper`
and :class:`fileinput.FileInput`, deprecated since Python 3.9.
(Contributed by Hugo van Kemenade in :issue:`45132`.)
@@ -402,7 +402,7 @@ Removed
the ``l*gettext()`` functions.
(Contributed by Dong-hee Na and Serhiy Storchaka in :issue:`44235`.)
-* Remove from the :mod:`configparser` module:
+* Removed from the :mod:`configparser` module:
the :class:`SafeConfigParser` class,
the :attr:`filename` property of the :class:`ParsingError` class,
the :meth:`readfp` method of the :class:`ConfigParser` class,
@@ -419,9 +419,25 @@ Removed
generator-based coroutine objects in the debug mode.
(Contributed by Illia Volochii in :issue:`43216`.)
-* Remove the deprecated ``split()`` method of :class:`_tkinter.TkappType`.
+* Removed the deprecated ``split()`` method of :class:`_tkinter.TkappType`.
(Contributed by Erlend E. Aasland in :issue:`38371`.)
+* Removed from the :mod:`inspect` module:
+
+ * the ``getargspec`` function, deprecated since Python 3.0;
+ use :func:`inspect.signature` or :func:`inspect.getfullargspec` instead.
+
+ * the ``formatargspec`` function, deprecated since Python 3.5;
+ use the :func:`inspect.signature` function and :class:`Signature` object
+ directly.
+
+ * the undocumented ``Signature.from_callable`` and ``Signature.from_function``
+ functions, deprecated since Python 3.5; use the
+ :meth:`Signature.from_callable() <inspect.Signature.from_callable>` method
+ instead.
+
+ (Contributed by Hugo van Kemenade in :issue:`45320`.)
+
Porting to Python 3.11
======================