Re: [pypy-dev] pythonapi and pypy on windows

2014-06-23 Thread Armin Rigo
Hi Matti, First question, what is the relationship of this mail and "PyPy on Windows"? On 21 June 2014 22:24, Matti Picus wrote: > ``ctypes.pythonapi`` lets you access the CPython C API > emulation layer. It does not work on PyPy at the moment, we are missing > a > ``getfunc`` method

Re: [pypy-dev] pythonapi and pypy on windows

2014-06-21 Thread Alex Gaynor
I think we shoudl either disable it, or make it be really good: meaning completely skipping the C-call layer, and just making things super simple: def PyListAppend(list, item): list.append(item) There's no point in having it if it's super expensive (IMO). Alex On Sat, Jun 21, 2014 at 1:24

[pypy-dev] pythonapi and pypy on windows

2014-06-21 Thread Matti Picus
Cpython has a feature that allows you to call c-api functions from python via ctypes.pythonapi It doesn't currently work on pypy, I started to document why not on the disable_pythonapi branch:     ``ctypes.pythonapi`` lets you access the CPython C API     emulat