https://github.com/python/cpython/commit/a7b5fc50e98c1abf38f246b0802f6c9a44779e80
commit: a7b5fc50e98c1abf38f246b0802f6c9a44779e80
branch: main
author: Peter Bierma <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2026-10-04T17:09:32-04:00
summary:
Docs: Clarify that `ctypes.pythonapi` *may* be `None` under a statically linked
interpreter (GH-158624)
files:
M Doc/library/ctypes.rst
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index 35658aeba705056..c492451148341d2 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -1755,8 +1755,9 @@ These prefabricated library loaders are available:
:c:expr:`int`, which is of course not always the truth, so you have to
assign
the correct :attr:`!restype` attribute to use these functions.
- Note that if the Python interpreter is statically linked, this will be
- ``None``, as ``dlopen`` is not possible in this case.
+ .. note::
+
+ If the Python interpreter is statically linked, this may be ``None``.
.. audit-event:: ctypes.dlopen name ctypes.LibraryLoader
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]