W. Trevor King, 21.12.2010 14:56:
> On Sun, Dec 19, 2010 at 07:28:32PM +0100, Stefan Behnel wrote:
>> W. Trevor King, 19.12.2010 14:26:
>>> Here's a patch bringing the ByBuffer_Release declaration up to speed
>>> with current Python headers.
>>
>> Applied, thanks. The buffer PEP and its implementation were still in flux
>> even shortly before the release of Py3.
>
> Actually, the declaration in PEP 3118 has not been updated [1].  Is
> that a PEP bug?

Looks like it (and wouldn't be the first time ;).


>> That was the time when the buffer.pxd was written, and I guess it
>> wasn't fixed since because most people just use the builtin buffer
>> support in Cython.
>
> Hmm, perhaps I'm doing things the wrong way then ;).  I'm calling an
> external library that needs:
>     fn(unsigned sort *array, int len)
> Is there another way to get that pointer?

Admittedly, it's a bit hidden in the docs if you don't use NumPy. Does this 
help?

http://docs.cython.org/src/tutorial/numpy.html

http://wiki.cython.org/enhancements/buffer

I'm surprised I didn't find any more extensive documentation of this 
feature in the core documentation.

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to