[Numpy-discussion] memmory management question

Pierre Haessig pierre.haessig at crans.org
Mon Oct 28 08:37:19 EDT 2013


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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131028/6747a0b4/attachment.sig>


More information about the NumPy-Discussion mailing list