summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-04-30 01:01:14 (GMT)
committerGitHub <noreply@github.com>2019-04-30 01:01:14 (GMT)
commitd5d2b4546939b98244708e5bb0cfccd55b99d244 (patch)
tree2a98e93bcad785c97f88154d275a4662afa40f8c /Doc
parent81c5a905951aaf46f292eb459c32649c0b74ef61 (diff)
downloadcpython-d5d2b4546939b98244708e5bb0cfccd55b99d244.zip
cpython-d5d2b4546939b98244708e5bb0cfccd55b99d244.tar.gz
cpython-d5d2b4546939b98244708e5bb0cfccd55b99d244.tar.bz2
bpo-36751: Deprecate getfullargspec and report positional-only args as regular args (GH-13016)
* bpo-36751: Deprecate getfullargspec and report positional-only args as regular args * Use inspect.signature in testhelpers
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/inspect.rst5
-rw-r--r--Doc/whatsnew/3.8.rst4
2 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 81824dd..d12f122 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -948,6 +948,11 @@ Classes and functions
APIs. This function is retained primarily for use in code that needs to
maintain compatibility with the Python 2 ``inspect`` module API.
+ .. deprecated:: 3.8
+ Use :func:`signature` and
+ :ref:`Signature Object <inspect-signature-object>`, which provide a
+ better introspecting API for callables.
+
.. versionchanged:: 3.4
This function is now based on :func:`signature`, but still ignores
``__wrapped__`` attributes and includes the already bound first
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index ac57335..bbc55dd 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -726,6 +726,10 @@ Deprecated
<positional-only_parameter>`.
(Contributed by Serhiy Storchaka in :issue:`36492`.)
+* The function :func:`~inspect.getfullargspec` in the :mod:`inspect`
+ module is deprecated in favor of the :func:`inspect.signature`
+ API. (Contributed by Pablo Galindo in :issue:`36751`.)
+
API and Feature Removals
========================