Change in behavior (bug) in ctypes

Marco Atzeri marco.atzeri@gmail.com
Thu Jun 30 14:57:00 GMT 2016


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



More information about the Cygwin mailing list