How to clean a module?
ai.nature at gmail.com
Fri Jun 1 18:31:14 CEST 2007
On Jun 1, 6:50 pm, "Diez B. Roggisch" <d... at nospam.web.de> wrote:
> 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.
More information about the Python-list