summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-22 15:38:38 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-22 15:38:38 (GMT)
commit3cfec2e2fcab9f39121cec362b78ac235093ca1c (patch)
tree5e95f36871c6ff1557a76b968210de346de9213e /Doc/library/inspect.rst
parent8d006e75e02dadf4af4d69cc6e0d846b0e29e154 (diff)
downloadcpython-3cfec2e2fcab9f39121cec362b78ac235093ca1c.zip
cpython-3cfec2e2fcab9f39121cec362b78ac235093ca1c.tar.gz
cpython-3cfec2e2fcab9f39121cec362b78ac235093ca1c.tar.bz2
Issue 20438: Deprecate inspect.getargspec() and friends.
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 8318825..6543da9 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -815,15 +815,16 @@ Classes and functions
The first four items in the tuple correspond to :func:`getargspec`.
- .. note::
- Consider using the new :ref:`Signature Object <inspect-signature-object>`
- interface, which provides a better way of introspecting functions.
-
.. versionchanged:: 3.4
This function is now based on :func:`signature`, but still ignores
``__wrapped__`` attributes and includes the already bound first
parameter in the signature output for bound methods.
+ .. deprecated:: 3.5
+ Use :func:`signature` and
+ :ref:`Signature Object <inspect-signature-object>`, which provide a
+ better introspecting API for callables.
+
.. function:: getargvalues(frame)
@@ -896,8 +897,8 @@ Classes and functions
.. versionadded:: 3.2
- .. note::
- Consider using the new :meth:`Signature.bind` instead.
+ .. deprecated:: 3.5
+ Use :meth:`Signature.bind` and :meth:`Signature.bind_partial` instead.
.. function:: getclosurevars(func)