Neal Becker wrote:
> Dag Sverre Seljebotn wrote:
>
>   
>> Stefan Behnel wrote:
>>     
>>> Dag Sverre Seljebotn, 26.10.2009 19:59:
>>>       
>>>>   a) Me and Kurt decided to use the name "memoryview" everywhere in the
>>>> code written in summer. The essential feature of the proposed Cython
>>>> type described in enhancements/array is a) a view to a reference-counted
>>>> PEP 3118 buffer, b) slices returns new sub-views. This is exactly what
>>>> the Python memoryview type does. Cython adds static typing to this, but
>>>> we decided to also name the Cython concept memoryview.
>>>>         
>>> Is it just the "concept", or also the type itself?
>>>
>>> I just want to make sure people can
>>>
>>> cdef memoryview m
>>>
>>> to use the Python memoryview type without having it fail or do something
>>> unexpected, just like they use
>>>
>>> cdef list l
>>>       
>> Sure, that will still work (if memoryview is added as a builtin type),
>> we don't plan to interfer at all there.
>>
>>     
>
> Will this lead to better support of numpy slices?
>   
Yes, but not on "np.ndarray[np.int_t, ndim=2]", only on "np.int_t[:,:]".

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

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

Reply via email to