Re: [Numpy-discussion] C-API: deallocating a partially filled object array

2007-01-26 Thread Travis Oliphant
Martin Wiechert wrote: >On Friday 26 January 2007 21:03, Robert Kern wrote: > > >>Martin Wiechert wrote: >> >> >>>Hi gurus, >>> >>>is it (in C) safe to deallocate an array of type NPY_OBJECT, which >>>carries NULL pointers? >>> >>> >>Possibly, I'm not sure without doing some more code-

Re: [Numpy-discussion] C-API: deallocating a partially filled object array

2007-01-26 Thread Martin Wiechert
On Friday 26 January 2007 21:03, Robert Kern wrote: > Martin Wiechert wrote: > > Hi gurus, > > > > is it (in C) safe to deallocate an array of type NPY_OBJECT, which > > carries NULL pointers? > > Possibly, I'm not sure without doing some more code-diving. However, I > strongly doubt that many othe

Re: [Numpy-discussion] C-API: deallocating a partially filled object array

2007-01-26 Thread Robert Kern
Martin Wiechert wrote: > Hi gurus, > > is it (in C) safe to deallocate an array of type NPY_OBJECT, which carries > NULL pointers? Possibly, I'm not sure without doing some more code-diving. However, I strongly doubt that many other operations are safe. Depending on how you got such an array and

[Numpy-discussion] C-API: deallocating a partially filled object array

2007-01-26 Thread Martin Wiechert
Hi gurus, is it (in C) safe to deallocate an array of type NPY_OBJECT, which carries NULL pointers? TIA, Martin ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion