This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Recipients David.Edelsohn, Michael.Felt,, martin.panter
Date 2016-06-11.14:52:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
On 6/10/2016 6:33 AM, Martin Panter wrote:
> Martin Panter added the comment:
> Will try to change the existing code from os.popen to subprocess (Issue 26439) to set a better example for new code like this
> ----------
> dependencies: +avoid using a shell in ctypes.util: replace os.popen with subprocess
> _______________________________________
> Python tracker <>
> <>
> _______________________________________

I have added comments to - but while doing so I came up with 
some thoughts re "special cases", where

a) the member is not in a archive (i.e., looking for a file)

b) the filename does not begin with "lib"

c) CDLL.LoadLibrary(name) succeeds

So, given that /usr/lib is default search path, and file exists 
as /usr/lib/ - should find_library(name) return name, or None.

d) name = ../some/where/; CDLL.LoadLibrary("../some/where/") 
works - should find_library(name) return name

e) assume find_library("../some/where/Foo") returns 
../some/where/, or None - again, given that 
../some/where/libFoo.a does not exist
Date User Action Args
2016-06-11 14:52:47aixtools@gmail.comsetrecipients: +, martin.panter, David.Edelsohn, Michael.Felt
2016-06-11 14:52:47aixtools@gmail.comlinkissue26439 messages
2016-06-11 14:52:46aixtools@gmail.comcreate