Yes, but I'm running some tests on hudson.<br><br><div class="gmail_quote">On 23 November 2011 21:46, Robert Bradshaw <span dir="ltr"><<a href="mailto:robertwb@math.washington.edu">robertwb@math.washington.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="HOEnZb"><div class="h5">On Wed, Nov 23, 2011 at 12:21 PM, mark florisson<br>
<<a href="mailto:markflorisson88@gmail.com">markflorisson88@gmail.com</a>> wrote:<br>
> Hey,<br>
><br>
> Currently when we want to convert C arrays to memoryview slices we have to<br>
> do this:<br>
><br>
> cdef int array[5][4]<br>
> cdef int[:, :] slice = <int[:5, :4]> <int *> array<br>
> I'd like to be able to write<br>
> cdef int array[5][4]<br>
> cdef int[:, :] slice<br>
> slice = <int[:, :]> array<br>
> # and<br>
> slice = array<br>
> I think that would be convenient, especially if we later on support variable<br>
> sized C arrays. I also changed semantics with the cython.array callback, so<br>
> now the data gets deallocated only if cython.array allocated it itself,<br>
> otherwise a callback may be registered.<br>
> Anyone opposed to the above semantics?<br>
<br>
</div></div>Sounds good to me. Having to explicitly set the deallocate callback<br>
seems the better default. Did you update the docs?<br>
<br>
- Robert<br>
_______________________________________________<br>
cython-devel mailing list<br>
<a href="mailto:cython-devel@python.org">cython-devel@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/cython-devel" target="_blank">http://mail.python.org/mailman/listinfo/cython-devel</a><br>
</blockquote></div><br>