Yes, but I&#39;m running some tests on hudson.<br><br><div class="gmail_quote">On 23 November 2011 21:46, Robert Bradshaw <span dir="ltr">&lt;<a href="mailto:robertwb@math.washington.edu">robertwb@math.washington.edu</a>&gt;</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>
&lt;<a href="mailto:markflorisson88@gmail.com">markflorisson88@gmail.com</a>&gt; wrote:<br>
&gt; Hey,<br>
&gt;<br>
&gt; Currently when we want to convert C arrays to memoryview slices we have to<br>
&gt; do this:<br>
&gt;<br>
&gt; cdef int array[5][4]<br>
&gt; cdef int[:, :] slice = &lt;int[:5, :4]&gt; &lt;int *&gt; array<br>
&gt; I&#39;d like to be able to write<br>
&gt; cdef int array[5][4]<br>
&gt; cdef int[:, :] slice<br>
&gt; slice = &lt;int[:, :]&gt; array<br>
&gt; # and<br>
&gt; slice = array<br>
&gt; I think that would be convenient, especially if we later on support variable<br>
&gt; sized C arrays. I also changed semantics with the cython.array callback, so<br>
&gt; now the data gets deallocated only if cython.array allocated it itself,<br>
&gt; otherwise a callback may be registered.<br>
&gt; 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>