"J. Peng" <[EMAIL PROTECTED]> writes:

> we create a new list and assign it to x for future use.  How to
> destroy the before list [1,2,3]? does python destroy it
> automatically?

Yes, Python detects that the older list is no longer in use (if that
is indeed the case), and destroys it automatically.  If you're curious
how that works, take a look at
http://en.wikipedia.org/wiki/Reference_counting
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to