[pypy-dev] pythonapi
Matti Picus
matti.picus at gmail.com
Wed Jun 25 16:10:24 CEST 2014
Assuming I understand correctly, the reason sys.dllhandle exists is that
you can do
dlopen(NULL)
in linux to get a handle to the current process, but not
LoadLibrary(NULL).
So windows builds provide a handle to the current process DLL as
sys.dllhandle,
which is then wrapped into ctypes.PyDLL(..., sys.dllhandle) and served
up as ctypes.pythonapi.
Working backwards from no pythonapi -> no PyDLL -> no sys.dllhandle.
Matti
On 25/06/2014 5:04 PM, Armin Rigo wrote:
> Hi Matti,
>
> On 25 June 2014 14:47, Matti Picus <matti.picus at gmail.com> wrote:
>> removes sys.dllhandle on windows,
> Can you explain why removing sys.dllhandle is a good idea? It seems
> unrelated to the ctypes changes, but maybe it is not.
>
>
> A bientôt,
>
> Armin.
More information about the pypy-dev
mailing list