Get all the instances of one class
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sun May 18 12:27:42 EDT 2008
En Sun, 18 May 2008 12:32:28 -0300, Terry <terry.yinzhe at gmail.com> escribió:
> On May 17, 8:04 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
> wrote:
>> En Fri, 16 May 2008 20:44:00 -0300, Terry <terry.yin... at gmail.com>
>> escribió:
>>
>> > Is there a simple way to get all the instances of one class? I mean
>> > without any additional change to the class.
>>
>> Try with gc.get_referrers()
>
> But I saw in the help that we should "Avoid using get_referrers() for
> any purpose other than debugging. "
Yes - so what do you want to do actually?
--
Gabriel Genellina
More information about the Python-list
mailing list