https://github.com/python/cpython/commit/3c6de410f459071a173841c8f3fb293d78a763e1
commit: 3c6de410f459071a173841c8f3fb293d78a763e1
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2026-10-04T21:18:18Z
summary:

[3.14] Docs: Clarify that `ctypes.pythonapi` *may* be `None` under a statically 
linked interpreter (GH-158624) (GH-158807)

(cherry picked from commit a7b5fc50e98c1abf38f246b0802f6c9a44779e80)

Co-authored-by: Peter Bierma <[email protected]>

files:
M Doc/library/ctypes.rst

diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index 94d33ab9b6a4c34..5b041b87625b87d 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -1803,8 +1803,9 @@ object is 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]

Reply via email to