> I guess my view is that the buffer interface is not orthogonal to this
> type of thing - rather it will make it even easier to build things
> that could interoperate.  Indeed one possible implementation strategy
> for these dynamic arrays would be to use buffers.


It is completely orthogonal to the "with" statement, but only almost to 
"cdef double a[size]".

"cdef double a[size]" should probably be implemented as one specific 
type, and what has been considered natural in the discussion until now 
(I think) is pure double* with getmem and auto-free. That's what the 
syntax suggests anyway. This means that the "default" Cython array 
object then probably won't support that standard. Which I now think is 
fine anyway. I'm just saying that with a slightly different syntax, it 
could be more natural to support the buffer API with "native" Cython 
arrays. But one can do both.

Or are you suggesting that the array allocation syntax you propose can 
have overridable allocators and create many different types of arrays?

Dag Sverre
_______________________________________________
Cython-dev mailing list
Cython-dev@codespeak.net
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to