Skip to content

Commit a7b5fc5

Browse files
Docs: Clarify that ctypes.pythonapi *may* be None under a statically linked interpreter (GH-158624)
1 parent 8dba039 commit a7b5fc5

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

1758-
Note that if the Python interpreter is statically linked, this will be
1759-
``None``, as ``dlopen`` is not possible in this case.
1758+
.. note::
1759+
1760+
If the Python interpreter is statically linked, this may be ``None``.
17601761

17611762
.. audit-event:: ctypes.dlopen name ctypes.LibraryLoader
17621763

0 commit comments

Comments
 (0)