ai wrote:

> Yes, you are right.
> But from this problem, could I infer that the statement "del xxx"
> doesn't release the memory which xxx used?

It just removes the name xxx from the current scope - which will result in a
reference counter decrease. If that was the last reference, the object will
be destroyed. Most times. There are some special cases involving the usage
of __del__-methods on objects.

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to