Wed, 22 Apr 2009 15:12:20 -0400, josef.pktd wrote: > On Wed, Apr 22, 2009 at 2:37 PM, Pauli Virtanen <p...@iki.fi> wrote: [clip] >> If you want to ensure no-copy, assign to shape: >> >> a.shape = (6,) [clip] > Is the difference between assigning to the attribute and using the > method call explained > somewhere?
No. But it certainly should be. The first place to fix is the attribute docstring which doesn't even mention it can be assigned to: http://docs.scipy.org/numpy/docs/numpy.ndarray.shape/ Similar review should be done to all attribute docstrings. Second, a separate more detailed discussion about memory layouts, views, etc. should be written. -- Pauli Virtanen _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion