[Numpy-discussion] is ndarray.base the closest base or the ultimate base?
Tue Sep 22 15:41:19 CDT 2009
So, what's the "bottom-line" of this thread: does the doc need to be
changed, or the code?
2009/9/21 Hans Meine <firstname.lastname@example.org>
> On Monday 21 September 2009 12:31:27 Citi, Luca wrote:
> > I think you do not need to do the chain up walk on view creation.
> > If the assumption is that base is the ultimate base, on view creation
> > you can do something like (pseudo-code):
> > view.base = parent if parent.owndata else parent.base
> Hmm. My impression was that .base was for refcounting purposes *only*.
> it is not even guaranteed that the attribute value is an array(-like)
> For example, I might want to allow direct access to some internal buffers
> an object of mine in an extension module; then, I'd use .base to bind the
> lifetime of my object to the array (the lifetime of which I cannot control
> NumPy-Discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion