Skip to content

Commit 4fa5497

Browse files
rgommersdnicolodi
authored andcommitted
DOC: remove CPython C API tutorial links, mention binding generators
Closes gh-796
1 parent 62d4f8b commit 4fa5497

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/tutorials/introduction.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ function ``foo`` that simply returns ``"bar"``.
6767
:class: seealso
6868

6969
If you need help writing a native module using Python's C API, we recommend
70-
checking out the following resources.
71-
72-
- `The official Python C API documentation <https://docs.python.org/3/extending/index.html>`_
73-
- `RealPython's "Building a Python C Extension Module" introductory tutorial <https://realpython.com/build-python-c-extension-module/>`_
74-
- `pysheeet's "C Extensions" page <https://www.pythonsheets.com/notes/python-c-extensions.html>`_
75-
- `pysheeet-kr's "Python C API cheatsheet" page <https://pysheeet-kr.readthedocs.io/ko/latest/notes/python-capi.html>`_
70+
checking out the :ref:`extending-index` guide in the Python documentation.
71+
Also consider if you need to use the CPython C API directly, or are perhaps
72+
better off using a binding generator tool like Cython_, pybind11_ or
73+
nanobind_ which will take care of a lot of the low-level details for you.
7674

7775

7876
The Meson build description
@@ -324,3 +322,6 @@ pip_.
324322
.. _Test PyPI: https://test.pypi.org/
325323
.. _PyPI: https://pypi.org/
326324
.. _pip: https://github.com/pypa/pip
325+
.. _Cython: https://cython.readthedocs.io
326+
.. _pybind11: https://pybind11.readthedocs.io
327+
.. _nanobind: https://nanobind.readthedocs.io

0 commit comments

Comments
 (0)