[Numpy-discussion] reshape docstrings conflicting
Pauli Virtanen
pav@iki...
Sat Apr 26 12:29:22 CDT 2008
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.
--
Pauli Virtanen
More information about the Numpy-discussion
mailing list