[Numpy-discussion] is ndarray.base the closest base or the ultimate base?

Citi, Luca lciti@essex.ac...
Mon Sep 21 04:51:52 CDT 2009


Thanks for your quick answer.

Is there a reason for that?
Am I wrong or it only makes life harder, such as:

while (PyArray_Check(base) && !PyArray_CHKFLAGS(base, NPY_OWNDATA)) { 
   base = PyArray_BASE(base); 
} 

plus the possible error you underlined, plus the fact that
this keeps a chain of zombies alive without reason.

Are there cases where the current behaviour is useful?

Best,
Luca



More information about the NumPy-Discussion mailing list