diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2017-02-23 15:42:30 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2017-02-23 15:42:30 (GMT) |
commit | 2197eac6104311472f200645bc844adb46444b10 (patch) | |
tree | cab888bbfa1915037a2a289de4f1ebcdbfed5326 /Doc/library | |
parent | 55b82e10dc6b75b30a72fa56beb60eaf54a008d4 (diff) | |
download | cpython-2197eac6104311472f200645bc844adb46444b10.zip cpython-2197eac6104311472f200645bc844adb46444b10.tar.gz cpython-2197eac6104311472f200645bc844adb46444b10.tar.bz2 |
bpo-28814: Undeprecate inadvertently deprecated inspect functions. (#122) (#243)
Nick Coghlan said on bpo-28814:
> inspect.getargvalues() and inspect.formatargvalues() were deprecated
> in Python 3.5 as part of implementing bpo-20438
> This is incorrect, as these are *frame* introspection related functions,
> not callable introspection ones. The documentation and implementation
> layout is confusing though, as they're interleaved with the callable
> introspection operation
This commit undeprecates these functions and adds a note to ignore
previous deprecation notices.
(cherry picked from commit 0899b9809547ec2894dcf88cf4bba732c5d47d0d)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/inspect.rst | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 41a784d..3fa44a0 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -905,10 +905,8 @@ Classes and functions are the names of the ``*`` and ``**`` arguments or ``None``. *locals* is the locals dictionary of the given frame. - .. deprecated:: 3.5 - Use :func:`signature` and - :ref:`Signature Object <inspect-signature-object>`, which provide a - better introspecting API for callables. + .. note:: + This function was inadvertently marked as deprecated in Python 3.5. .. function:: formatargspec(args[, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations[, formatarg, formatvarargs, formatvarkw, formatvalue, formatreturns, formatannotations]]) @@ -944,10 +942,8 @@ Classes and functions :func:`getargvalues`. The format\* arguments are the corresponding optional formatting functions that are called to turn names and values into strings. - .. deprecated:: 3.5 - Use :func:`signature` and - :ref:`Signature Object <inspect-signature-object>`, which provide a - better introspecting API for callables. + .. note:: + This function was inadvertently marked as deprecated in Python 3.5. .. function:: getmro(cls) |