Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(194918)

Unified Diff: Doc/library/ctypes.rst

Issue 21042: ctypes.util.find_library() should return full pathname instead of filename in linux
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/ctypes/test/test_find.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/library/ctypes.rst Wed Feb 10 01:17:51 2016 +0000
+++ b/Doc/library/ctypes.rst Mon Feb 22 13:14:36 2016 +0100
@@ -1252,15 +1252,15 @@
On Linux, :func:`find_library` tries to run external programs
(``/sbin/ldconfig``, ``gcc``, and ``objdump``) to find the library file. It
-returns the filename of the library file. Here are some examples::
+returns the absolute path of the library file. Here are some examples::
>>> from ctypes.util import find_library
>>> find_library("m")
- 'libm.so.6'
+ '/lib/x86_64-linux-gnu/libm.so.6'
>>> find_library("c")
- 'libc.so.6'
+ '/lib/x86_64-linux-gnu/libc.so.6'
>>> find_library("bz2")
- 'libbz2.so.1.0'
+ '/lib/x86_64-linux-gnu/libbz2.so.1.0'
>>>
On OS X, :func:`find_library` tries several predefined naming schemes and paths
@@ -1829,6 +1829,9 @@
The exact functionality is system dependent.
+ .. versionchanged:: 3.6
+ On Linux it returns an absolute path.
+
.. function:: find_msvcrt()
:module: ctypes.util
« no previous file with comments | « no previous file | Lib/ctypes/test/test_find.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+