Skip to content

Commit 9f4fce3

Browse files
committed
Docs: Clarify that ctypes.pythonapi *may* be None under a statically linked interpreter (GH-158624)
1 parent 47f0473 commit 9f4fce3

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
@@ -1704,8 +1704,9 @@ These prefabricated library loaders are available:
17041704
:c:expr:`int`, which is of course not always the truth, so you have to assign
17051705
the correct :attr:`!restype` attribute to use these functions.
17061706

1707-
Note that if the Python interpreter is statically linked, this will be
1708-
``None``, as ``dlopen`` is not possible in this case.
1707+
.. note::
1708+
1709+
If the Python interpreter is statically linked, this may be ``None``.
17091710

17101711
.. audit-event:: ctypes.dlopen name ctypes.LibraryLoader
17111712

0 commit comments

Comments
 (0)