bpo-28814: Undeprecate inadvertently deprecated inspect functions. (#… · python/cpython@0246422 (original) (raw)
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -875,10 +875,8 @@ Classes and functions | ||
875 | 875 | are the names of the ``*`` and ``**`` arguments or ``None``. *locals* is the |
876 | 876 | locals dictionary of the given frame. |
877 | 877 | |
878 | - .. deprecated:: 3.5 | |
879 | - Use :func:`signature` and | |
880 | -:ref:`Signature Object <inspect-signature-object>`, which provide a | |
881 | - better introspecting API for callables. | |
878 | + .. note:: | |
879 | + This function was inadvertently marked as deprecated in Python 3.5. | |
882 | 880 | |
883 | 881 | |
884 | 882 | .. function:: formatargspec(args[, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations[, formatarg, formatvarargs, formatvarkw, formatvalue, formatreturns, formatannotations]]) |
@@ -914,10 +912,8 @@ Classes and functions | ||
914 | 912 | :func:`getargvalues`. The format\* arguments are the corresponding optional |
915 | 913 | formatting functions that are called to turn names and values into strings. |
916 | 914 | |
917 | - .. deprecated:: 3.5 | |
918 | - Use :func:`signature` and | |
919 | -:ref:`Signature Object <inspect-signature-object>`, which provide a | |
920 | - better introspecting API for callables. | |
915 | + .. note:: | |
916 | + This function was inadvertently marked as deprecated in Python 3.5. | |
921 | 917 | |
922 | 918 | |
923 | 919 | .. function:: getmro(cls) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2327,11 +2327,12 @@ The :func:`inspect.getargspec` function is deprecated and scheduled to be | ||
2327 | 2327 | removed in Python 3.6. (See :issue:`20438` for details.) |
2328 | 2328 | |
2329 | 2329 | The :mod:`inspect` :func:`~inspect.getfullargspec`, |
2330 | -:func:`~inspect.getargvalues`, :func:`~inspect.getcallargs`, | |
2331 | -:func:`~inspect.getargvalues`, :func:`~inspect.formatargspec`, and | |
2332 | -:func:`~inspect.formatargvalues` functions are deprecated in favor of | |
2333 | -the :func:`inspect.signature` API. | |
2334 | -(Contributed by Yury Selivanov in :issue:`20438`.) | |
2330 | +:func:`~inspect.getcallargs`, and :func:`~inspect.formatargspec` functions are | |
2331 | +deprecated in favor of the :func:`inspect.signature` API. (Contributed by Yury | |
2332 | +Selivanov in :issue:`20438`.) | |
2333 | + | |
2334 | +:func:`~inspect.getargvalues` and :func:`~inspect.formatargvalues` functions | |
2335 | +were inadvertently marked as deprecated with the release of Python 3.5.0. | |
2335 | 2336 | |
2336 | 2337 | Use of :const:`re.LOCALE` flag with str patterns or :const:`re.ASCII` is now |
2337 | 2338 | deprecated. (Contributed by Serhiy Storchaka in :issue:`22407`.) |