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.

Author janssen
Recipients janssen, ronaldoussoren, theller
Date 2008-05-21.20:03:56
SpamBayes Score 0.00069529633
Marked as misclassified No
Message-id <4b3e516a0805211300w75d8afa3ha157247f345c864c@mail.gmail.com>
In-reply-to <48346C15.5010004@ctypes.org>
Content
I thought you might say that :-).  No, I'm good with this resolution.  If I
provide a patch, it will be for the LD_LIBRARY_PATH problem.

Though -- I think there's an interesting question about what the purpose of
"find_library()" actually is, as opposed to what it's current implementation
is.  I disagree with Ronald's strict reading of the documentation.  I think
it should emulate the behavior of the dynamic linker, not the C compiler.
That is, it should look for the libraries as "ld.so" (or its platform
equivalent) would, because the purpose of finding them is to load them with
CDLL.  This behavior is different from what the compiler does.

I also think find_library() should just be moved into the ctypes library,
not dangling off by itself in the otherwise unused util sub-module.

Bill

On Wed, May 21, 2008 at 11:39 AM, Thomas Heller <report@bugs.python.org>
wrote:

>
> Thomas Heller <theller@ctypes.org> added the comment:
>
> Thanks, Ronald.  Sounds like this bug could be closed then.
>
> Bill, if you want a library search function with different semantics,
> I suggest you open a feature request, describe the sematics that
> should be used and (ideally) provide a patch.
>
> __________________________________
> Tracker <report@bugs.python.org>
> <http://bugs.python.org/issue2783>
> __________________________________
>
Files
File name Uploaded
unnamed janssen, 2008-05-21.20:03:21
History
Date User Action Args
2008-05-21 20:04:27janssensetspambayes_score: 0.000695296 -> 0.00069529633
recipients: + janssen, theller, ronaldoussoren
2008-05-21 20:04:02janssenlinkissue2783 messages
2008-05-21 20:04:01janssencreate