How to clean a module?

ai ai.nature at
Fri Jun 1 18:31:14 CEST 2007


On Jun 1, 6:50 pm, "Diez B. Roggisch" <d... at> 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.
> Diez

More information about the Python-list mailing list