https://github.com/python/cpython/commit/c32a4c14fdc4d0a699d5ad63497061972a9109cf
commit: c32a4c14fdc4d0a699d5ad63497061972a9109cf
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: encukou <[email protected]>
date: 2025-12-16T10:56:32+01:00
summary:

[3.13] gh-142020: ctypes docs: Note that find_library relies on the programs it 
runs (GH-142134) (GH-142749)

gh-142020: ctypes docs: Note that find_library relies on the programs it runs 
(GH-142134)
(cherry picked from commit e4d32a3ef9eab34225fd9320632edbce834f4033)

files:
M Doc/library/ctypes.rst

diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index 911e7cb2668a29..d9cd5f2e265a95 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -1335,6 +1335,9 @@ On Linux, :func:`~ctypes.util.find_library` tries to run 
external programs
 (``/sbin/ldconfig``, ``gcc``, ``objdump`` and ``ld``) to find the library file.
 It returns the filename of the library file.
 
+Note that if the output of these programs does not correspond to the dynamic
+linker used by Python, the result of this function may be misleading.
+
 .. versionchanged:: 3.6
    On Linux, the value of the environment variable ``LD_LIBRARY_PATH`` is used
    when searching for libraries, if a library cannot be found by any other 
means.
@@ -2037,6 +2040,8 @@ Utility functions
 
    The exact functionality is system dependent.
 
+   See :ref:`ctypes-finding-shared-libraries` for complete documentation.
+
 
 .. function:: find_msvcrt()
    :module: ctypes.util

_______________________________________________
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