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.pi...@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.

_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to