mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-45320: Remove long-deprecated inspect methods (GH-28618)
This commit is contained in:
parent
d8e1819251
commit
d89fb9a5a6
6 changed files with 48 additions and 260 deletions
|
@ -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
|
||||
======================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue