On Mon, Sep 15, 2014 at 12:31 PM, Eelco Hoogendoorn
wrote:
> I figured the reference to the object through the local scope would also be
> tracked by the GC somehow, since the entire stack frame can be regarded as a
> separate object itself, but apparently not.
Objects are "tracked", not referenc
I figured the reference to the object through the local scope would also be
tracked by the GC somehow, since the entire stack frame can be regarded as
a separate object itself, but apparently not.
On Mon, Sep 15, 2014 at 1:06 PM, Mads Ipsen wrote:
> Thanks to everybody for taking time to answer!
Thanks to everybody for taking time to answer!
Best regards,
Mads
On 15/09/14 12:11, Sebastian Berg wrote:
> On Mo, 2014-09-15 at 12:05 +0200, Eelco Hoogendoorn wrote:
>>
>>
>>
>> On Mon, Sep 15, 2014 at 11:55 AM, Sebastian Berg
>> wrote:
>> On Mo, 2014-09-15 at 10:16 +0200, Mads Ipsen
On Mo, 2014-09-15 at 12:05 +0200, Eelco Hoogendoorn wrote:
>
>
>
> On Mon, Sep 15, 2014 at 11:55 AM, Sebastian Berg
> wrote:
> On Mo, 2014-09-15 at 10:16 +0200, Mads Ipsen wrote:
> > Hi,
> >
> > I am trying to inspect the reference count of numpy arrays
>
On Mon, Sep 15, 2014 at 11:05 AM, Eelco Hoogendoorn
wrote:
> Does this answer why the ndarray object itself isn't tracked though? I must
> say I find this puzzling; the only thing I can think of is that the python
> compiler notices that data isn't used anymore after its creation, and
> deletes i
On Mon, Sep 15, 2014 at 11:55 AM, Sebastian Berg wrote:
> On Mo, 2014-09-15 at 10:16 +0200, Mads Ipsen wrote:
> > Hi,
> >
> > I am trying to inspect the reference count of numpy arrays generated by
> > my application.
> >
> > Initially, I thought I could inspect the tracked objects using
> > gc.g
On Mo, 2014-09-15 at 10:16 +0200, Mads Ipsen wrote:
> Hi,
>
> I am trying to inspect the reference count of numpy arrays generated by
> my application.
>
> Initially, I thought I could inspect the tracked objects using
> gc.get_objects(), but, with respect to numpy objects, the returned
> cont
Hi,
I am trying to inspect the reference count of numpy arrays generated by
my application.
Initially, I thought I could inspect the tracked objects using
gc.get_objects(), but, with respect to numpy objects, the returned
container is empty. For example:
import numpy
import gc
data = numpy.o