Googling sys.dllhandle gave me no other uses, the only use case I can of
think would
involve casting to some kind of ctypes dll and accessing capi (cpyext)
capabilites.
The original failing test that led me down the path to discover all this
was
module.cpyext.test.test_cpyext's AppTestApi.().test_dllhandle - note
it is in
cpyext not sys, there are no tests in sys in pypy nor in cpython that
use dllhandle.
However, for the mean time, I have restored sys.dllhandle as an int.
If it seems OK, feel free to merge into default
Matti
On 25/06/2014 5:33 PM, Armin Rigo wrote:
Hi Matti,
On 25 June 2014 16:10, Matti Picus<matti.pi...@gmail.com> wrote:
Working backwards from no pythonapi -> no PyDLL -> no sys.dllhandle.
Right, but I'm not sure that it's only used by ctypes and nothing
else. If that were the case it would be some private name in the
_ctypes module...
Also, I'm not sure I understand it correctly, but it seems that on
CPython, sys.dllhandle is just an integer, whereas on PyPy so far it
is some W_CDLL instance. I wouldn't mind fixing it to be like CPython
(then it has nothing to do with cpyext or with _rawffi).
A bientôt,
Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev