Hi Dag,

Dag Sverre Seljebotn wrote:
> I'm wondering if I could move Py_buffer out of the default scope, in
> order to reduce the namespace incompatability. (Py_buffer is present in
> the global scope for the purposes of the second argument to
> __getbuffer__ and __releasebuffer__ ). The alternatives I see are either
> "cython.Py_buffer" or "python_buffer.Py_buffer" (or both), where you
> need to cimport cython/python_buffer first.

I see Py_buffer in a similar light as Py_ssize_t. Would you also argue for
that being moved into a separate namespace?

Since Py_buffer is a requirement for implementing a standard Python C-API
method, I think it makes sense to keep it in the global namespace as a
standard data type of Cython.

Stefan

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

Reply via email to