[Numpy-discussion] memmory management question

Robert Kern robert.kern at gmail.com
Mon Oct 28 09:56:00 EDT 2013


On Mon, Oct 28, 2013 at 1:25 PM, Pierre Haessig <pierre.haessig at crans.org>
wrote:
>
> Le 28/10/2013 13:40, Robert Kern a écrit :
> > > What I didn't find (by quick googling) is how to access the original
> > > array. Is it possible to access it (with Python code) ?
> >
> > a.base
> Thanks! Is there a specific paragraph I missed in the user guide ?
>
> I had googled "numpy access original array" and  first result is
> http://docs.scipy.org/doc/numpy/user/basics.indexing.html
> In this document, it is mentionned several time that slicing yields
> "views of the original data", but the .base attribute is not mentionned.
> Should it be or is it out-of-scope of the Indexing guide ?

I think it's out-of-scope for "Numpy basics", certainly. It's mostly an
implementation detail. There isn't much that you can usefully do with it as
a user.

http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.base.html

--
Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131028/d2dbf0ee/attachment.html>


More information about the NumPy-Discussion mailing list