[Numpy-discussion] some question on new dtype

Travis Oliphant oliphant at ee.byu.edu
Wed Jan 25 15:03:06 CST 2006

Travis Oliphant wrote:

> I know what the problem is.    Too many places, I did not account for 
> the fact that a VOID array could in-fact have OBJECT sub-fields.  
> Thus, any special processing on OBJECT subfields to handle reference 
> counts must also be done on possible sub-fields. 
> This may take a while to fix properly....  If anyone has any ideas, 
> let me know.
> -Travis

For now, I've added a hasobject member to the dtype object structure and 
filled it in properly on construction.  Then, I disable construction of 
such arrays so that we don't get the segfault.  I think this is too 
harsh.  I think at some point we can offer some support for them (there 
may be a few methods and functions that don't work and we can give an 
error on those particular ones rather than not allow their construction).


More information about the Numpy-discussion mailing list