Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions developer-workflow/extension-modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ using `Podman <https://podman.io/docs/installation>`__.
Missing ``Py_BUILD_CORE`` define when using internal headers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

By default, the CPython :ref:`Stable ABI <stable-abi>` is exposed via
By default, the CPython :ref:`Stable ABI <python:stable-abi>` is exposed via
:code:`#include "Python.h"`. In some cases, this may be insufficient
and internal headers from :cpy-file:`Include/internal` are needed;
in particular, those headers require the :c:macro:`!Py_BUILD_CORE`
Expand Down Expand Up @@ -650,7 +650,7 @@ Restricting to the Limited API
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

In order for non-CPython implementations to benefit from new extension modules,
it is recommended to use the :ref:`Limited API <limited-c-api>`. Instead of
it is recommended to use the :ref:`Limited API <python:limited-c-api>`. Instead of
exposing the entire Stable ABI, define the :c:macro:`Py_LIMITED_API` macro
*before* the :code:`#include "Python.h"` directive:

Expand Down
6 changes: 3 additions & 3 deletions development-tools/clinic/howto.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.. _clinic-howtos:

How-to guides
Expand Down Expand Up @@ -219,7 +219,7 @@

*converter*
Only supported by the ``object`` converter. Specifies the name of a
:ref:`C "converter function" <o_ampersand>`
:ref:`C "converter function" <python:o_ampersand>`
to use to convert this object to a native type.

*encoding*
Expand Down Expand Up @@ -677,7 +677,7 @@
-----------------------------------------

Argument Clinic facilitates gaining access to the defining class of a method.
This is useful for :ref:`heap type <heap-types>` methods that need to fetch
This is useful for :ref:`heap type <python:heap-types>` methods that need to fetch
module level state. Use :c:func:`PyType_FromModuleAndSpec` to associate a new
heap type with a module. You can now use :c:func:`PyType_GetModuleState` on
the defining class to fetch the module state, for example from a module method.
Expand Down Expand Up @@ -1267,7 +1267,7 @@

If Argument Clinic :term:`input` is located within a C source file
that contains ``#define Py_LIMITED_API``, Argument Clinic will generate C code
that uses the :ref:`Limited API <limited-c-api>` to parse arguments. The
that uses the :ref:`Limited API <python:limited-c-api>` to parse arguments. The
advantage of this is that the generated code will not use private functions.
However, this *can* result in Argument Clinic generating less efficient code
in some cases. The extent of the performance penalty will depend
Expand Down
2 changes: 1 addition & 1 deletion development-tools/clinic/index.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.. highlight:: c

.. _clinic:
Expand Down Expand Up @@ -193,7 +193,7 @@

.. option:: --limited

Use the :ref:`Limited API <limited-c-api>` to parse arguments in the generated C code.
Use the :ref:`Limited API <python:limited-c-api>` to parse arguments in the generated C code.
See :ref:`clinic-howto-limited-capi`.

.. option:: FILE ...
Expand Down
2 changes: 1 addition & 1 deletion documentation/start-documenting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ written using the :ref:`reStructuredText format <markup>` and contained in the
If you're interested in contributing to Python's documentation, there's no
need to write reStructuredText if you're not so inclined; plain text
contributions are more than welcome as well. Send an e-mail to
docs@python.org or open an issue on the :ref:`tracker <reporting-bugs>`.
docs@python.org or open an issue on the :ref:`tracker <python:reporting-bugs>`.


Introduction
Expand Down
Loading