The del() instruction has me confused, and this "easy" answer simply
supports my confusion. IF I have a "cycle", and the del() command can
"break that cycle" by doing something as simple as:
del(a)
then it seems to me that the exact same "cycle" can be broken by
doing:
a = None
I understand how reference counts work to achieve GC, and I don't see
the justification for a del() command when the existing stuff (my
example) works equally well. What am I missing?
Note I *can* justify the presence of the del() on other grounds, but I
*can't* for the life of me figure out why it comes up in GC
discussion. (Except that it sounds like "free()" from C, or "delete
..." from C++).
Thanks,
Jim
Jim Roskind
voice: 408.982.4469
fax: 408.986.1889
jar@infoseek.com