Skip to content

Commit 3c6de41

Browse files
[3.14] Docs: Clarify that ctypes.pythonapi *may* be None under a statically linked interpreter (GH-158624) (GH-158807)
(cherry picked from commit a7b5fc5) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent 66df30d commit 3c6de41

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎Doc/library/ctypes.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,8 +1803,9 @@ object is available:
18031803
:c:expr:`int`, which is of course not always the truth, so you have to assign
18041804
the correct :attr:`!restype` attribute to use these functions.
18051805

1806-
Note that if the Python interpreter is statically linked, this will be
1807-
``None``, as ``dlopen`` is not possible in this case.
1806+
.. note::
1807+
1808+
If the Python interpreter is statically linked, this may be ``None``.
18081809

18091810
.. audit-event:: ctypes.dlopen name ctypes.LibraryLoader
18101811

0 commit comments

Comments
 (0)