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

Kurt Smith kwmsmith at gmail.com
Fri Aug 13 09:49:13 EDT 2010


On Thu, Aug 12, 2010 at 8:26 PM, Lutz Maibaum <lutz.maibaum at 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?

http://projects.scipy.org/numpy/ticket/1581

Kurt

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



More information about the NumPy-Discussion mailing list