[Numpy-discussion] List Array References?

Davide Albanese albanese at fbk.eu
Fri Feb 15 07:54:40 EST 2008


Whith "standard" Python:
 >>> who()

Robin ha scritto:
> On Thu, Feb 14, 2008 at 8:43 PM, Alexander Michael <lxander.m at gmail.com> wrote:
>   
>> Is there a way to list all of the arrays that are referencing a given
>>  array? Similarly, is there a way to get a list of all arrays that are
>>  currently in memory?
>>     
>
> For the second question, if you are working interactively in Ipython, you can do
> %who ndarray
> or
> %whos ndarray
> to get a list of arrays.
>
> It might be possible to get this functionality within a script/program
> through the ipython api, but I'm afraid I don't know much about that.
>
> Cheers,
>
> Robin
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>   




More information about the NumPy-Discussion mailing list