This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Change in behavior (bug) in ctypes
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 30 Jun 2016 16:31:27 +0200
- Subject: Re: Change in behavior (bug) in ctypes
- Authentication-results: sourceware.org; auth=none
- References: <57752727 dot 9070706 at gmail dot com>
On 30/06/2016 16:05, Marvin Greenberg wrote:
Code like this was working until sometime recently,
$ python
import ctypes
cygdll = ctypes.cdll.cygwin1
$ python -c "import ctypes; print ctypes._dlopen('cygwin1')"; cygcheck
-V; python -V
Traceback (most recent call last):
File "<string>", line 1, in <module>
OSError: No such file or directory
cygcheck (cygwin) 2.5.2
System Checker for Cygwin ...<snip>
Python 2.7.10
Note that simply changing the call to explicitly append the dll
extension works fine:
$ python -c "import ctypes; print ctypes._dlopen('cygwin1.dll')"
6442713088
But that won't work with the former attribute-style of loading the dll.
No assumption on default extension
https://cygwin.com/ml/cygwin/2016-06/msg00379.html
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple