[Numpy-discussion] different values for ndarray when printed with or without [ ]

Nicholas Nadeau nicholas.nadeau at gmail.com
Wed Oct 18 08:39:01 EDT 2017

Hi Nissim,

While a working example will be helpful, I just wanted to confirm that
you're not assigning a value to `list`, as you did in your message
(e.g., ` list
= arr.tolist()`).

Because if that's the case, then you may run into issues, as `list` is a
built-in Python keyword (for the `list` class).


Nicholas Nadeau, P.Eng., AVS

On 18 October 2017 at 06:44, Nissim Derdiger <NissimD at elspec-ltd.com> wrote:

> Hi all,
> I have a ndarray, that shows different values when called like that:
> print(arr) or like that print(arr[0::]).
> When changing it back to a python string (with list = arr.tolist()) – both
> prints return same value, but when converting that list back to np array
> (arr=np.array(list)) – the printing issue returns.
> Any ideas what may cause that?
> Thanks,
> Nissim.
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20171018/214ffa1e/attachment.html>

More information about the NumPy-Discussion mailing list