diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 5e817268a2036b..09dfc68fee57dc 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -1177,7 +1177,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`. Suspend tracing and profiling in the Python thread state *tstate*. - Resume them using the:c:func:`PyThreadState_LeaveTracing` function. + Resume them using the :c:func:`PyThreadState_LeaveTracing` function. .. versionadded:: 3.11 @@ -1185,7 +1185,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`. .. c:function:: void PyThreadState_LeaveTracing(PyThreadState *tstate) Resume tracing and profiling in the Python thread state *tstate* suspended - by the:c:func:`PyThreadState_EnterTracing` function. + by the :c:func:`PyThreadState_EnterTracing` function. See also :c:func:`PyEval_SetTrace` and :c:func:`PyEval_SetProfile` functions. diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index 045b7d7c945df5..33cbaadfce944e 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -43,10 +43,10 @@ ] roles = [ - ":class:", - ":func:", - ":meth:", - ":mod:", + "(?