[Numpy-discussion] reshape docstrings conflicting

Charles R Harris charlesr.harris@gmail....
Sat Apr 26 13:24:28 CDT 2008


On Sat, Apr 26, 2008 at 11:29 AM, Pauli Virtanen <pav@iki.fi> wrote:

> Hi all,
>
> The ndarray.reshape docstring claims:
>
>        "Also always returns a view or raises a ValueError if that is
>        impossible."
>
> whereas fromnumeric.reshape claims:
>
>        "This will be a new view object if possible; otherwise, it will
>        be a copy."
>
> while the code paths for both functions are the same.
>
> So, which one of these is correct? Or, does ndarray.reshape always
> return a view? This is not immediately obvious looking at the code...
>
> I'll fix up the docstrings once I know.
>

Hi Pauli,

I noticed that you removed the ReST markup of the tables in sort
documentation. I think you should leave it in.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080426/1b44d699/attachment.html 


More information about the Numpy-discussion mailing list