[Numpy-discussion] ndarray.copy does not accept keyword argument

Kurt Smith kwmsmith@gmail....
Fri Aug 13 08:49:13 CDT 2010

On Thu, Aug 12, 2010 at 8:26 PM, Lutz Maibaum <lutz.maibaum@gmail.com> wrote:
> According to the docstring, ndarray.copy should accept a keyword argument "order". This doesn't seem to work for me:
>>>> np.array([[1,2],[3,4]]).copy(order='C')
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> TypeError: copy() takes no keyword arguments
> Calling ndarray.copy with a positional argument seems to work, but this behavior seems inconsistent with the documentation and other occurrences of the "order" keyword. Is this a bug, or am I misunderstanding the documentation?



> Thanks,
>  Lutz
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

More information about the NumPy-Discussion mailing list