forcing list garbage collection

Martin v. Loewis martin at v.loewis.de
Fri Oct 11 14:46:47 EDT 2002


abidnego25 at yahoo.com (les) writes:


> dictionaries have a clear() method, do lists have something similar?
> i would like to list to empty and memory recollected right away.

Assign an empty slice.

Regards,
Martin



More information about the Python-list mailing list