Hi,

Along the line of what David said, I just looked at the flags :

a = np.arange(10)

a.flags
  [...]
  OWNDATA : True

a = a[:3]

a.flags
  [...]
  OWNDATA : False

Indeed, after a=a[:3], a is not the same Python object but still points
to the data of the first object.

What I didn't find (by quick googling) is how to access the original
array. Is it possible to access it (with Python code) ?

best,
Pierre



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to