Skip to content

Commit cfccca3

Browse files
committed
Doc: fix Sphinx reference warnings in Doc/c-api/
1 parent 7928a8b commit cfccca3

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

Doc/c-api/init_config.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,9 +1235,9 @@ PyConfig
12351235
12361236
.. c:member:: wchar_t* base_executable
12371237
1238-
Python base executable: :data:`sys._base_executable`.
1238+
Python base executable: ``sys._base_executable``.
12391239
1240-
Set by the :envvar:`__PYVENV_LAUNCHER__` environment variable.
1240+
Set by the ``__PYVENV_LAUNCHER__`` environment variable.
12411241
12421242
Set from :c:member:`PyConfig.executable` if ``NULL``.
12431243
@@ -1748,7 +1748,7 @@ PyConfig
17481748
17491749
* On macOS, use :envvar:`PYTHONEXECUTABLE` environment variable if set.
17501750
* If the ``WITH_NEXT_FRAMEWORK`` macro is defined, use
1751-
:envvar:`__PYVENV_LAUNCHER__` environment variable if set.
1751+
``__PYVENV_LAUNCHER__`` environment variable if set.
17521752
* Use ``argv[0]`` of :c:member:`~PyConfig.argv` if available and
17531753
non-empty.
17541754
* Otherwise, use ``L"python"`` on Windows, or ``L"python3"`` on other
@@ -1984,8 +1984,7 @@ PyConfig
19841984
19851985
The :mod:`warnings` module adds :data:`sys.warnoptions` in the reverse
19861986
order: the last :c:member:`PyConfig.warnoptions` item becomes the first
1987-
item of :data:`warnings.filters` which is checked first (highest
1988-
priority).
1987+
item of :attr:`warnings.filters` which is checked first (highest priority).
19891988
19901989
The :option:`-W` command line options adds its value to
19911990
:c:member:`~PyConfig.warnoptions`, it can be used multiple times.

Doc/c-api/intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ when defined by the compiler, will also implicitly enable :c:macro:`!Py_DEBUG`.
11601160
In addition to the reference count debugging described below, extra checks are
11611161
performed. See :ref:`Python Debug Build <debug-build>` for more details.
11621162

1163-
Defining :c:macro:`Py_TRACE_REFS` enables reference tracing
1163+
Defining ``Py_TRACE_REFS`` enables reference tracing
11641164
(see the :option:`configure --with-trace-refs option <--with-trace-refs>`).
11651165
When defined, a circular doubly linked list of active objects is maintained by adding two extra
11661166
fields to every :c:type:`PyObject`. Total allocations are tracked as well. Upon

0 commit comments

Comments
 (0)