[pypy-dev] pythonapi
Matti Picus
matti.picus at gmail.com
Mon Jun 30 03:12:07 CEST 2014
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.picus at 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.
More information about the pypy-dev
mailing list