Whre is my object ??

King Kuta mr.kuta at libero.it
Tue Jun 3 19:55:15 EDT 2003


Hi Aahz,
I bet the base question is: Will my object be garbage-collected?
I mean once I delete it it is no more referenced, right?
I can still manipulate it till it exist, because I have a pointer to its
instance, but when (and most of all if) python checks for bindings it will
find the object is not any more referenced to by any name.

So, ...

Thanks,
Marco


"Aahz" <aahz at pythoncraft.com> wrote in message
news:bbjb8b$hds$1 at panix1.panix.com...
> In article <bbj4p4$f8n$1 at news1.ucsd.edu>, King Kuta <mr.kuta at libero.it>
wrote:
> >
> >Ok, a little riddle for he Python community.
>
> Erik already gave you a good answer.  For more detail, see
> http://starship.python.net/crew/mwh/hacks/objectthink.html
> -- 
> Aahz (aahz at pythoncraft.com)           <*>
http://www.pythoncraft.com/
>
> "If you don't know what your program is supposed to do, you'd better not
> start writing it."  --Dijkstra






More information about the Python-list mailing list